From a576c09b9aa1c184548cb6ee0353c9e205a6b5e3 Mon Sep 17 00:00:00 2001 From: Riku Oja Date: Fri, 26 Jan 2024 15:14:20 +0200 Subject: [PATCH] Fix development instance default postgis port in absence of env variables --- database/migrations/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/env.py b/database/migrations/env.py index c3d1129..18746d1 100644 --- a/database/migrations/env.py +++ b/database/migrations/env.py @@ -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}"