From 9f105d305dda4a0b53f42c215e866d482b048007 Mon Sep 17 00:00:00 2001 From: yvesf Date: Wed, 24 Nov 2010 22:43:56 +0100 Subject: gunicorn related cleanup --- web_proxy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'web_proxy.py') diff --git a/web_proxy.py b/web_proxy.py index ec5fd55..903c667 100644 --- a/web_proxy.py +++ b/web_proxy.py @@ -34,7 +34,8 @@ class ReverseProxied(object): return self.app(environ, start_response) from web import app +app.debug = True +app.wsgi_app = ReverseProxied(app.wsgi_app) + if __name__ == "__main__": - app.debug = True - app.wsgi_app = ReverseProxied(app.wsgi_app) - app.run(host="0.0.0.0", port=8000) + app.run(host="0.0.0.0", port=8000) -- cgit v1.2.1