Don't run the app, let the wsgi layer do that.

This commit is contained in:
Joshua McKenty 2013-04-16 11:00:52 -07:00
parent 2c3dc526ff
commit de34f02926
1 changed files with 6 additions and 6 deletions

View File

@ -23,9 +23,9 @@ app.debug = True
def index():
return render_template('index.html')
resource = WSGIResource(reactor, reactor.getThreadPool(), app)
site = Site(resource)
app.listeningPort = reactor.listenTCP(PORT, site)
reactor.run()
#
# resource = WSGIResource(reactor, reactor.getThreadPool(), app)
# site = Site(resource)
# app.listeningPort = reactor.listenTCP(PORT, site)
#
# reactor.run()