Add a wait check for mysql connectivity

This commit is contained in:
Daniel_I_Am 2021-09-19 18:58:13 +02:00
parent 7925576697
commit 0b63b8da21

View File

@ -6,6 +6,10 @@ if [ "${1#-}" != "$1" ]; then
set -- apache2-foreground "$@" set -- apache2-foreground "$@"
fi fi
while ! curl mysql:3306; do
sleep 1
done
php artisan cache:clear php artisan cache:clear
php artisan config:cache php artisan config:cache
php artisan route:cache php artisan route:cache