From 720239e382fc87e205b43caf2db569198d8d3939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 15 Nov 2024 18:09:46 +0100 Subject: [PATCH] chore: remove useless public/ directory in skeleton --- frankenphp/docker-entrypoint.sh | 8 ++++---- public/.gitignore | 0 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 public/.gitignore 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