Skip to content

Commit 3d002ad

Browse files
authored
Update env.py to use POSTGRES_SERVER from env variable
- Replace hardcoded `localhost` with POSTGRES_SERVER env var.
1 parent 45be043 commit 3d002ad

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)