require APPLICATION_SETTINGS to be set

This commit is contained in:
Simon Pirkelmann 2022-09-16 21:55:48 +02:00
parent 74c6661f0e
commit 8d29fbe9cd

View File

@ -78,7 +78,7 @@ def create_app():
app.config.from_object(
'imaginaerraum_door_admin.default_app_config.DefaultConfig'
)
app.config.from_envvar('APPLICATION_SETTINGS', silent=True)
app.config.from_envvar('APPLICATION_SETTINGS')
token_file = Path(app.config.get('TOKEN_FILE'))
if not token_file.exists():