From 50311958f731476a7f8ea206c4d251c3737ed151 Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Wed, 4 Sep 2024 18:41:04 -0500 Subject: [PATCH] formatting of docker entrypoint script --- docker/entrypoint.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index e485159..e250f6f 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,28 +1,28 @@ #!/bin/bash -echo "Running entrypoint script..." +echo "=============== Running entrypoint script... =============== " if [ ! -f "/var/www/app/.env" ]; then - echo "Ope, gotta create an .env file!" + echo " > Ope, gotta create an .env file!" cp /var/www/app/.env.example /var/www/app/.env fi if ( ! grep -q "^APP_KEY=" "/var/www/app/.env" || grep -q "^APP_KEY=$" "/var/www/app/.env"); then - echo "Ah, APP_KEY is missing in .env file. Generating a new key!" + echo " > Ah, APP_KEY is missing in .env file. Generating a new key!" /usr/local/bin/php /var/www/app/artisan key:generate fi -echo "Installing Composer dependencies..." +echo "=============== Installing Composer dependencies... =============== " /usr/local/bin/composer install -echo "Install NPM dependencies and build frontend..." +echo "=============== Install NPM dependencies and build frontend... =============== " /usr/bin/npm install /usr/bin/npm run build -echo "Running migrations..." +echo "=============== Running migrations... =============== " /usr/local/bin/php /var/www/app/artisan migrate -echo "Spinning up Supervisor daemon..." +echo "=============== Spinning up Supervisor daemon... =============== " exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf