Skip to content

Commit

Permalink
Fix postgres env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlensky committed Dec 4, 2023
1 parent 282a724 commit 13cfc6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ In order to connect Hyacinth to Discord, you must first configure an application
HYACINTH_DISCORD_TOKEN=<your discord token>
# any password is fine, it will be used for the bot's internal database
HYACINTH_POSTGRES_USER=postgres
HYACINTH_POSTGRES_PASSWORD=<a random password>
POSTGRES_USER=postgres
POSTGRES_PASSWORD=<a random password>
```

Remember to replace the values inside `<>`!
Expand Down
6 changes: 3 additions & 3 deletions hyacinth/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import sys

from pydantic import ValidationError
from pydantic import Field, ValidationError
from pydantic_settings import BaseSettings, SettingsConfigDict


Expand Down Expand Up @@ -33,8 +33,8 @@ class Settings(BaseSettings):
]

# db credentials
postgres_user: str
postgres_password: str
postgres_user: str = Field(alias="POSTGRES_USER")
postgres_password: str = Field(alias="POSTGRES_PASSWORD")

# the local geocoding implementation does not require a google API key, but requires first
# downloading some spatial data and only supports the US
Expand Down

0 comments on commit 13cfc6c

Please sign in to comment.