def serve(path=localFile, port=8080, root=None):
    """Serve the coverage app over HTTP."""
    if coverage is None:
        raise ImportError('The coverage module could not be imported.')
    from coverage import coverage

    cov = coverage(data_file=path)
    cov.load()

    cherrypy.config.update(
        {
            'server.socket_port': int(port),
            'server.thread_pool': 10,
            'environment': 'production',
        },
    )
    cherrypy.quickstart(CoverStats(cov, root))
Serve the coverage app over HTTP.
cherrypy/lib/covercp.py