Category Archives: WSGI
Serving mercurial with mod_wsgi
Here’s a quick and easy recipe for serving a mercurial repository with mod_wsgi. Create a file called hgwebdir.wsgi with these contents: from mercurial.hgweb.request import wsgiapplication from mercurial.hgweb.hgwebdir_mod import hgwebdir def make_web_app(): return hgwebdir(“/path/to/hgweb.config”) application = wsgiapplication(make_web_app) Add it to the … Continue reading
Posted in Mercurial, WSGI
4 Comments