Source

Cubbard / pavement.py

@task
def start_server():
    import cherrypy
    from paste.translogger import TransLogger
    from weberror.evalexception import EvalException
    from cubbard import TyranicalIndexMiddleware
    
    app = TyranicalIndexMiddleware('127.0.0.1', 1978)
    app = EvalException(app)
    app = TransLogger(app)
    cherrypy.tree.graft(app, '/')
    cherrypy.quickstart()