mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
seed only once
This commit is contained in:
@@ -59,7 +59,11 @@ EOPHP
|
||||
|
||||
php artisan optimize --force
|
||||
php artisan migrate --force
|
||||
php artisan db:seed --force
|
||||
|
||||
if [ ! -e "/var/www/app/is-seeded" ]; then
|
||||
php artisan db:seed --force
|
||||
touch "/var/www/app/is-seeded"
|
||||
fi
|
||||
|
||||
echo 'start'
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user