Disable debug mode in production so teardown requests execute on exception.
This commit is contained in:
parent
b3dad1fc0b
commit
52d2229482
1 changed files with 0 additions and 4 deletions
|
@ -39,9 +39,5 @@ def close_db(exc):
|
||||||
|
|
||||||
application.teardown_request(close_db)
|
application.teardown_request(close_db)
|
||||||
|
|
||||||
|
|
||||||
# Remove this for prod config
|
|
||||||
application.debug = True
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
application.run(port=5000, debug=True, threaded=True, host='0.0.0.0')
|
application.run(port=5000, debug=True, threaded=True, host='0.0.0.0')
|
||||||
|
|
Reference in a new issue