Skip to content

Commit

Permalink
database name
Browse files Browse the repository at this point in the history
  • Loading branch information
DIVYANSHI-PARASHAR committed Mar 23, 2024
1 parent 6c6420e commit 16c8f81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
export FLASK_APP=service:app
pytest --pspec --cov=service --cov-fail-under=95
env:
DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb"
DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/postgres"

# Uncomment the following 2 lines during hands-on lab

Expand Down
6 changes: 4 additions & 2 deletions service/config.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""
Global Configuration for Application
"""

import os
import logging

# Get configuration from environment
DATABASE_URI = os.getenv(
"DATABASE_URI",
"postgresql+psycopg://postgres:postgres@localhost:5432/postgres"
"DATABASE_URI", "postgresql+psycopg://postgres:postgres@localhost:5432/postgres"
)

# Configure SQLAlchemy
Expand All @@ -18,3 +18,5 @@
# Secret for session management
SECRET_KEY = os.getenv("SECRET_KEY", "sup3r-s3cr3t")
LOGGING_LEVEL = logging.INFO

# DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/postgres"

0 comments on commit 16c8f81

Please sign in to comment.