avoid seed temp fix for twice seeding

This commit is contained in:
Samuel Laulhau
2016-10-05 12:51:50 +02:00
committed by GitHub
parent 5c9495cabd
commit 2b1923ea7f

View File

@@ -57,12 +57,12 @@ do {
} while (true); } while (true);
EOPHP EOPHP
php artisan optimize --force #php artisan optimize --force
php artisan migrate --force #php artisan migrate --force
if [ ! -e "/var/www/app/is-seeded" ]; then if [ ! -e "/var/www/app/is-seeded" ]; then
php artisan db:seed --force #php artisan db:seed --force
touch "/var/www/app/is-seeded" #touch "/var/www/app/is-seeded"
fi fi
echo 'start' echo 'start'