diff options
Diffstat (limited to 'cherrypy/lib/profiler.py')
-rw-r--r-- | cherrypy/lib/profiler.py | 4 |
1 files changed, 1 insertions, 3 deletions
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__": |