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():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
|
#
|
||||||
resource = WSGIResource(reactor, reactor.getThreadPool(), app)
|
# resource = WSGIResource(reactor, reactor.getThreadPool(), app)
|
||||||
site = Site(resource)
|
# site = Site(resource)
|
||||||
app.listeningPort = reactor.listenTCP(PORT, site)
|
# app.listeningPort = reactor.listenTCP(PORT, site)
|
||||||
|
#
|
||||||
reactor.run()
|
# reactor.run()
|
Loading…
Reference in New Issue