Skip to content

Commit

Permalink
Added project initializability check in docker-entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
7-zete-7 authored and maxhelias committed Jan 15, 2025
1 parent ab9039c commit 6707f3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frankenphp/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6707f3d

Please sign in to comment.