diff --git a/app.py b/app.py index e6d2adc..94789af 100644 --- a/app.py +++ b/app.py @@ -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) \ No newline at end of file + debug = os.environ.get('DEBUG', 'False').lower() in ('true', '1', 't') + app.run(debug=debug, port=port) \ No newline at end of file