Skip to content

Commit

Permalink
Django settings add DB_USER
Browse files Browse the repository at this point in the history
  • Loading branch information
cxrxixs committed May 11, 2024
1 parent 0d35685 commit 9387f44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- 5432:5432
env:
POSTGRES_DB: db_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
# set health checks to wait until postgres has started
Expand Down
2 changes: 1 addition & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
REDIS_PORT = env("REDIS_PORT")
else:
DB_NAME = os.environ.get("DB_NAME") or os.environ.get("POSTGRES_DB")
DB_USER = os.environ.get("DB_USER")
DB_USER = os.environ.get("DB_USER") or os.environ.get("POSTGRES_USER")
DB_PASSWORD = os.environ.get("DB_PASSWORD") or os.environ.get(
"POSTGRES_PASSWORD"
)
Expand Down

0 comments on commit 9387f44

Please sign in to comment.