Skip to content

Commit

Permalink
Fix development instance default postgis port in absence of env varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
Rikuoja committed Jan 26, 2024
1 parent 9c73933 commit a576c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_url(connection_params: dict):
host = connection_params.get(
"host", os.environ.get("DB_INSTANCE_ADDRESS", "localhost")
)
port = connection_params.get("port", os.environ.get("DB_INSTANCE_PORT", "5432"))
port = connection_params.get("port", os.environ.get("DB_INSTANCE_PORT", "5434"))
dbname = connection_params.get("dbname", os.environ.get("DB_MAIN_NAME", "hame"))
return f"postgresql://{user}:{password}@{host}:{port}/{dbname}"

Expand Down

0 comments on commit a576c09

Please sign in to comment.