We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 053afc7 + 141992e commit 656f986Copy full SHA for 656f986
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