Fixed adding an actual wsgi app from switch from cheroot to cherrypy

This commit is contained in:
Seth House 2012-11-15 21:27:45 -07:00
parent 38fd2da0ec
commit 344f57c4f6

View File

@ -305,9 +305,11 @@ def start():
else:
root.verify_certs(gconf['ssl_crt'], gconf['ssl_key'])
app = cherrypy.tree.mount(root, '/', config=conf)
ssl_a = wsgiserver.ssl_builtin.BuiltinSSLAdapter(
gconf['ssl_crt'], gconf['ssl_key'])
wsgi_d = wsgiserver.WSGIPathInfoDispatcher({'/': root})
wsgi_d = wsgiserver.WSGIPathInfoDispatcher({'/': app})
server = wsgiserver.CherryPyWSGIServer(
('0.0.0.0', gconf['server.socket_port']),
wsgi_app=wsgi_d)