seed only once

This commit is contained in:
Sam
2016-09-29 08:07:07 +02:00
parent a1037c8459
commit 22ea880d1a

View File

@@ -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 "$@"