Added project initializability check in docker-entrypoint.sh

This commit is contained in:
Stanislau Kviatkouski 2025-01-10 19:36:51 +03:00 committed by Maxime Helias
parent ab9039c840
commit 6707f3d1c0

View File

@ -26,6 +26,10 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
composer install --prefer-dist --no-progress --no-interaction composer install --prefer-dist --no-progress --no-interaction
fi fi
# Display information about the current project
# Or about an error in project initialization
php bin/console -V
if grep -q ^DATABASE_URL= .env; then if grep -q ^DATABASE_URL= .env; then
echo 'Waiting for database to be ready...' echo 'Waiting for database to be ready...'
ATTEMPTS_LEFT_TO_REACH_DATABASE=60 ATTEMPTS_LEFT_TO_REACH_DATABASE=60