Skip to content

Commit

Permalink
Configure local postgresql if database_url is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Sep 22, 2023
1 parent a0d0079 commit d938463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/prod/supervisord
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ configure_local_postgres() {
echo "data_directory='$PGDATA'" >> "$PGCONF_FILE"
}

if [ "$dbhost" = "127.0.0.1" ]; then
if [ -z "${DATABASE_URL}" ] || [ "$dbhost" = "127.0.0.1" ]; then
configure_local_postgres

# initialize cluster if it does not exist yet
Expand Down

0 comments on commit d938463

Please sign in to comment.