We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 053afc7 commit 141992eCopy full SHA for 141992e
backend/src/wsgi.py
@@ -1,4 +1,6 @@
1
from app import app
2
+import os
3
4
if __name__ == "__main__":
- app.run(host='0.0.0.0', port=5000, debug=True)
5
+ debug_mode = os.getenv('FLASK_DEBUG', 'False').lower() in ['true', '1', 't']
6
+ app.run(host='0.0.0.0', port=5000, debug=debug_mode)
0 commit comments