diff --git a/frappe/app.py b/frappe/app.py index 607479ad52..f17f1494b2 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -286,7 +286,7 @@ def serve(port=8000, profile=False, no_reload=False, no_threading=False, site=No from werkzeug.serving import run_simple - if profile: + if profile or os.environ.get('USE_PROFILER'): application = ProfilerMiddleware(application, sort_by=('cumtime', 'calls')) if not os.environ.get('NO_STATICS'):