Skip to content

Commit

Permalink
Setup: fix key error (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
lusmoura committed May 1, 2024
1 parent 44845aa commit 3dd9411
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/models/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

load_dotenv()

SQLALCHEMY_DATABASE_URL = os.environ["DATABASE_URL"]

SQLALCHEMY_DATABASE_URL = os.environ.get(
"DATABASE_URL", "postgresql+psycopg2://postgres:postgres@db:5432"
)
engine = create_engine(
SQLALCHEMY_DATABASE_URL, pool_size=5, max_overflow=10, pool_timeout=30
)
Expand Down

0 comments on commit 3dd9411

Please sign in to comment.