From 6707f3d1c06d45062eca1afd8693c6e9e57e5a0f Mon Sep 17 00:00:00 2001 From: Stanislau Kviatkouski <7-zete-7@users.noreply.github.com> Date: Fri, 10 Jan 2025 19:36:51 +0300 Subject: [PATCH] Added project initializability check in docker-entrypoint.sh --- frankenphp/docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frankenphp/docker-entrypoint.sh b/frankenphp/docker-entrypoint.sh index c62faad90..0f6716dd5 100755 --- a/frankenphp/docker-entrypoint.sh +++ b/frankenphp/docker-entrypoint.sh @@ -26,6 +26,10 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then composer install --prefer-dist --no-progress --no-interaction 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 echo 'Waiting for database to be ready...' ATTEMPTS_LEFT_TO_REACH_DATABASE=60