🔧 toggle debug

This commit is contained in:
mi
2025-11-06 22:24:49 +10:00
parent 8be643cce3
commit 63b342dad7

3
app.py
View File

@@ -67,4 +67,5 @@ def page_not_found(e):
if __name__ == '__main__':
port = int(os.environ.get('PORT', 3000))
app.run(debug=True, port=port)
debug = os.environ.get('DEBUG', 'False').lower() in ('true', '1', 't')
app.run(debug=debug, port=port)