Skip to content

Commit 9fe4303

Browse files
authored
Merge pull request #166 from epinapala/main
Replace hardcoded localhost with POSTGRES_SERVER env var.
2 parents 45be043 + 5952a08 commit 9fe4303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/migrations/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
config.set_main_option(
1616
"sqlalchemy.url",
17-
f"{settings.POSTGRES_ASYNC_PREFIX}{settings.POSTGRES_USER}:{settings.POSTGRES_PASSWORD}@localhost/{settings.POSTGRES_DB}",
17+
f"{settings.POSTGRES_ASYNC_PREFIX}{settings.POSTGRES_USER}:{settings.POSTGRES_PASSWORD}@{settings.POSTGRES_SERVER}/{settings.POSTGRES_DB}",
1818
)
1919

2020
# Interpret the config file for Python logging.

0 commit comments

Comments
 (0)