FederationOfTech / Coalesce

An open source volunteer management platform from the Federation of Humanitarian Technologists
GNU Affero General Public License v3.0
13 stars 13 forks source link

Fix DATABASE_URL usage in wait_for_postgres.py #53

Closed stefanha closed 3 years ago

stefanha commented 3 years ago

The Django site uses dj_database_url to provide the database connection details in a DATABASE_URL environment variable instead of multiple environment variables for the host, user, password, etc.

Use dj_database_url instead of the old environment variables that are unused. This fixes a 30 second delay and bogus error message when starting the api container.

Fixes: 3ed2783896d9b4f5a769154cff71314c008f9b39 Signed-off-by: Stefan Hajnoczi stefanha@gmail.com