diff options
Diffstat (limited to 'cherrypy/lib')
-rw-r--r-- | cherrypy/lib/covercp.py | 4 | ||||
-rw-r--r-- | cherrypy/lib/profiler.py | 4 |
2 files changed, 2 insertions, 6 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:])) diff --git a/cherrypy/lib/profiler.py b/cherrypy/lib/profiler.py index e3b9d066..7afbf74d 100644 --- a/cherrypy/lib/profiler.py +++ b/cherrypy/lib/profiler.py @@ -170,13 +170,11 @@ class make_app: def serve(path=None, port=8080): import cherrypy - cherrypy.tree.mount(Profiler(path)) cherrypy.config.update({'server.socket_port': int(port), 'server.thread_pool': 10, 'environment': "production", }) - cherrypy.server.start() - cherrypy.engine.start() + cherrypy.quickstart(Profiler(path)) if __name__ == "__main__": |