Skip to content

Commit

Permalink
Update boot.sh
Browse files Browse the repository at this point in the history
updated to handle postgres defined in database_url
  • Loading branch information
smilerz authored Nov 1, 2023
1 parent 97fc15d commit 225ddc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo "Waiting for database to be ready..."
attempt=0
max_attempts=20

if [ "${DB_ENGINE}" == 'django.db.backends.postgresql' ]; then
if [ "${DB_ENGINE}" == 'django.db.backends.postgresql' ] || [ "${DATABASE_URL}" == 'postgres'* ]; then

# POSTGRES_PASSWORD (or a valid file at POSTGRES_PASSWORD_FILE) must be set in .env file

Expand Down

0 comments on commit 225ddc8

Please sign in to comment.