🔧 toggle debug
This commit is contained in:
3
app.py
3
app.py
@@ -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)
|
||||||
Reference in New Issue
Block a user