All pastes #340677 Raw Edit

Mine

public text v1 · immutable
#340677 ·published 2007-02-04 22:52 UTC
rendered paste body
from mercurial.hgweb import hgwebdir_mod
from flup.server.fcgi import WSGIServer


from mercurial.hgweb.hgwebdir_mod import hgwebdir
from mercurial.hgweb.request import wsgiapplication


configFile = '/opt/www/fastcgi/changes/hgweb.conf'


def make_web_app():
    return hgwebdir(configFile)

app = wsgiapplication(make_web_app)

WSGIServer(app).run()