Skip to content

Commit

Permalink
Ensure a number of variables exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rjhenry committed Jul 18, 2023
1 parent 7d861ff commit 03907dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-entrypoint.sh
Expand Up @@ -21,6 +21,16 @@ DB_PORT=${DB_PORT:-3306}
# Ensure these is no local .env file
[ -f ".env" ] && rm .env

# Check a number of essential variables are set
check_vars_exist \
APP_KEY \
APP_URL \
DB_DATABASE \
DB_HOST \
DB_PASSWORD \
DB_PORT \
DB_USERNAME

echoerr "wait-for-db: waiting for ${DB_HOST_NAME}:${DB_PORT}"

timeout 15 bash <<EOT
Expand Down

0 comments on commit 03907dd

Please sign in to comment.