projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add graphs of network usage by VMs.
[invirt/packages/invirt-web.git]
/
code
/
invirt.fcgi
diff --git
a/code/invirt.fcgi
b/code/invirt.fcgi
index
64d55f7
..
ded6b68
100755
(executable)
--- a/
code/invirt.fcgi
+++ b/
code/invirt.fcgi
@@
-42,6
+42,7
@@
if __name__ == "__main__":
app_config = {
'/': {
'tools.invirtwebstate.on': True,
app_config = {
'/': {
'tools.invirtwebstate.on': True,
+ 'tools.clear_db_cache.on': True,
},
}
},
}
@@
-63,7
+64,12
@@
if __name__ == "__main__":
cherrypy.engine.start()
cherrypy.engine.block()
else:
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()
from flup.server.fcgi import WSGIServer
server = WSGIServer(cherrypy.tree)
server.run()