Answer the question
In order to leave comments, you need to log in
How to enable Flask debug mode on production server with gunicorn?
Hello!
How can I activate Debug mode on a gunicorn server?
To automatically update flask after changing files.
Tips from the Internet that did not help:
app.config['ENV'] = 'development'
app.config['DEBUG'] = True
app.config['TESTING'] = True
from flask_debug import Debug
Debug(app)
app.run(debug=True)
export FLASK_ENV=development
export FLASK_DEBUG=1
export TEMPLATES_AUTO_RELOAD=True
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question