diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 0388e11..3052127 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -6,6 +6,10 @@ if [ "${1#-}" != "$1" ]; then set -- apache2-foreground "$@" fi + while ! curl mysql:3306; do + sleep 1 + done + php artisan cache:clear php artisan config:cache php artisan route:cache