fix(settings): respect SQL_PORT env variable, defaulting to 5432 if not available

This commit is contained in:
Herculino Trotta
2025-01-26 11:17:38 -03:00
parent 93774cca64
commit 58a6048857

View File

@@ -131,7 +131,7 @@ DATABASES = {
"USER": os.environ.get("SQL_USER", "user"), "USER": os.environ.get("SQL_USER", "user"),
"PASSWORD": os.environ.get("SQL_PASSWORD", "password"), "PASSWORD": os.environ.get("SQL_PASSWORD", "password"),
"HOST": os.environ.get("SQL_HOST", "localhost"), "HOST": os.environ.get("SQL_HOST", "localhost"),
"PORT": "5432", "PORT": os.environ.get("SQL_PORT", "5432"),
} }
} }