app_config = {
'/': {
'tools.invirtwebstate.on': True,
+ 'tools.clear_db_cache.on': True,
},
}
cherrypy.engine.start()
cherrypy.engine.block()
else:
- cherrypy.engine.start(blocking=False)
+ cherrypy.server.unsubscribe()
+ try:
+ # Case that cherrypy < 3.1.0
+ cherrypy.engine.start(blocking=False)
+ except TypeError:
+ cherrypy.engine.start()
from flup.server.fcgi import WSGIServer
server = WSGIServer(cherrypy.tree)
server.run()