Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class Config(object):
"""
Config object for flask app
"""

load_dotenv(".env")
environment = os.environ.get("environment", "")
load_dotenv(f".env{environment}")
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URI")
# 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
Expand Down
3 changes: 2 additions & 1 deletion server/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
Declares extension for Flask App, connects with already existing database
"""
# specifying engine according to existing db
load_dotenv(".env")
environment = os.environ.get("environment", "")
load_dotenv(f".env{environment}")


if not strtobool(os.environ.get("TESTING", "True")):
Expand Down