Don't hardcode postres port in bookwyrm.settings

Have bookwyrm.settings check for an alternative postgres port.
This commit is contained in:
bcj 2021-05-17 00:03:11 -05:00
parent f508b4eb33
commit e8124806b1
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@ BOOKWYRM_DATABASE_BACKEND=postgres
MEDIA_ROOT=images/
POSTGRES_PORT=5432
POSTGRES_PASSWORD=securedbpassword123
POSTGRES_USER=fedireads
POSTGRES_DB=fedireads

View file

@ -118,7 +118,7 @@ BOOKWYRM_DBS = {
"USER": env("POSTGRES_USER", "fedireads"),
"PASSWORD": env("POSTGRES_PASSWORD", "fedireads"),
"HOST": env("POSTGRES_HOST", ""),
"PORT": 5432,
"PORT": env("POSTGRES_PORT", 5432),
},
}