summaryrefslogtreecommitdiff
path: root/cherrypy/lib/covercp.py
diff options
context:
space:
mode:
Diffstat (limited to 'cherrypy/lib/covercp.py')
-rw-r--r--cherrypy/lib/covercp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/cherrypy/lib/covercp.py b/cherrypy/lib/covercp.py
index 1ef53fb3..7441aaaa 100644
--- a/cherrypy/lib/covercp.py
+++ b/cherrypy/lib/covercp.py
@@ -349,13 +349,11 @@ def serve(path=localFile, port=8080):
coverage.cache_default = path
import cherrypy
- cherrypy.tree.mount(CoverStats())
cherrypy.config.update({'server.socket_port': port,
'server.thread_pool': 10,
'environment': "production",
})
- cherrypy.server.start()
- cherrypy.engine.start()
+ cherrypy.quickstart(CoverStats())
if __name__ == "__main__":
serve(*tuple(sys.argv[1:]))