diff --git a/app.py b/app.py index b751440..50d3f8b 100644 --- a/app.py +++ b/app.py @@ -45,5 +45,6 @@ def api_highlight(): if __name__ == '__main__': - port = int(os.environ.get("PORT", 5000)) - app.run(host='0.0.0.0', port=port) + port = int(os.environ.get('PORT', 5000)) + use_debug = os.environ.get('FLASK_ENV', 'development') != 'production' + app.run(host='0.0.0.0', port=port, debug=use_debug)