Skip to content

Commit

Permalink
chore: test db connection
Browse files Browse the repository at this point in the history
  • Loading branch information
montoyaobeso committed Jun 5, 2024
1 parent d8e5867 commit 42250a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
os.environ["POSTGRES_USER"] = db_credentials["username"]
os.environ["POSTGRES_PASSWORD"] = db_credentials["password"]
os.environ["POSTRES_HOST"] = db_credentials["host"]
os.environ["POSTRES_DB"] = db_credentials["database"]
print(db_credentials)
os.environ["POSTGRES_DB"] = db_credentials["database"]

SQLALCHEMY_DATABASE_URL = f"postgresql://{os.environ['POSTGRES_USER']}:{os.environ['POSTGRES_PASSWORD']}@{os.environ['POSTRES_HOST']}/{os.environ['POSTGRES_DB']}"

Expand Down

0 comments on commit 42250a6

Please sign in to comment.