From 653c1c584cfd69f651355b83c2c3b8d3273e316f Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 6 Dec 2021 15:32:11 +0100 Subject: [PATCH] fix(cli): Set env variable for debug --- run_flaschengeist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_flaschengeist b/run_flaschengeist index 03d3222..1aca1be 100644 --- a/run_flaschengeist +++ b/run_flaschengeist @@ -5,7 +5,7 @@ import argparse import sys import pkg_resources -from sqlalchemy import exc +from os import environ from flaschengeist.app import create_app, install_all from flaschengeist.config import config @@ -142,6 +142,7 @@ def run(arguments): with app.app_context(): app.wsgi_app = PrefixMiddleware(app.wsgi_app, prefix=config["FLASCHENGEIST"].get("root", "")) if arguments.debug: + environ["FLASK_DEBUG"] = "1" app.run(arguments.host, arguments.port, debug=True) else: app.run(arguments.host, arguments.port, debug=False)