Skip to content

Commit

Permalink
#34 set the TELEGRAM_PYTHON_LOG_LEVEL during build
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Feb 16, 2022
1 parent d426f67 commit e78a1fc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,9 @@ def deploy():
envSettings["SAAS_ACTIVATE_ACCOUNT_PATH"] = app.config[
"SAAS_ACTIVATE_ACCOUNT_PATH"
]

envSettings[
"SQLALCHEMY_DATABASE_URI"
] = f"{app.config['SQLALCHEMY_DATABASE_URI']}=sqlite:///{dstDir}data.db"
envSettings["TELEGRAM_PYTHON_LOG_LEVEL"] = app.config[
"TELEGRAM_PYTHON_LOG_LEVEL"
]

envVars = "\n".join(map(str, envSettings))
my_env = {**os.environ.copy(), **envSettings} # Merge dicts
Expand Down

0 comments on commit e78a1fc

Please # to comment.