Don't run the app, let the wsgi layer do that.
This commit is contained in:
parent
2c3dc526ff
commit
de34f02926
|
@ -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()
|
Loading…
Reference in New Issue