🔧 toggle debug

This commit is contained in:
mi
2025-11-06 22:24:49 +10:00
parent b13833962d
commit 78dab63101

3
app.py
View File

@@ -67,4 +67,5 @@ def page_not_found(e):
if __name__ == '__main__': if __name__ == '__main__':
port = int(os.environ.get('PORT', 3000)) 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)