get debug mode from env variables when starting wsgi server
This commit is contained in:
parent
2e0c7e897e
commit
2a2f8a0874
@ -13,5 +13,5 @@ app = get_app(config)
|
||||
port = app.config["API_PORT"] if app.config.get("API_PORT", False) else 5002
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.debug = True
|
||||
app.debug = app.config.get("DEBUG", False)
|
||||
app.run(host="0.0.0.0", port=port)
|
||||
|
Loading…
Reference in New Issue
Block a user