Fixed dockerization

This commit is contained in:
jleeong
2017-08-31 12:05:43 -07:00
parent 2915fae942
commit 88d3db4dc8
4 changed files with 233 additions and 36 deletions

View File

@@ -2,15 +2,4 @@
cat .env.docker | envsubst > .env
if [ "${INIT_DATABASE:="no"}" = "yes" ]; then
echo "Init database detected, checking mysql status"
# depends on your machine, but it may take a file to boot mysql container the first time
until php artisan firefly:verify &>/dev/null
do
echo "waiting mysql"
sleep 10
done
php artisan migrate:refresh --seed
fi
exec apache2-foreground