diff --git a/frankenphp/docker-entrypoint.sh b/frankenphp/docker-entrypoint.sh index 9823560f9..ab74418c5 100755 --- a/frankenphp/docker-entrypoint.sh +++ b/frankenphp/docker-entrypoint.sh @@ -17,7 +17,7 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then composer config --json extra.symfony.docker 'true' if grep -q ^DATABASE_URL= .env; then - echo "To finish the installation please press Ctrl+C to stop Docker Compose and run: docker compose up --build -d --wait" + echo 'To finish the installation please press Ctrl+C to stop Docker Compose and run: docker compose up --build -d --wait' sleep infinity fi fi @@ -27,7 +27,7 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then fi 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 until [ $ATTEMPTS_LEFT_TO_REACH_DATABASE -eq 0 ] || DATABASE_ERROR=$(php bin/console dbal:run-sql -q "SELECT 1" 2>&1); do if [ $? -eq 255 ]; then @@ -41,11 +41,11 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then done if [ $ATTEMPTS_LEFT_TO_REACH_DATABASE -eq 0 ]; then - echo "The database is not up or not reachable:" + echo 'The database is not up or not reachable:' echo "$DATABASE_ERROR" exit 1 else - echo "The database is now ready and reachable" + echo 'The database is now ready and reachable' fi if [ "$( find ./migrations -iname '*.php' -print -quit )" ]; then diff --git a/public/.gitignore b/public/.gitignore deleted file mode 100644 index e69de29bb..000000000