Commits

Matthew Marshall committed 3446800

Added fcgi file for hg.

  • Participants
  • Parent commits 289da95

Comments (0)

Files changed (1)

File htdocs/hgfcgi/dispatch.fcgi

+#!/usr/bin/python2.4
+
+import cgitb, sys
+sys.path += ['/home/freehg/lib/python']
+from mercurial.hgweb.hgwebdir_mod import hgwebdir
+from mercurial.hgweb.request import wsgiapplication
+from fcgi import WSGIServer
+
+cgitb.enable()
+
+def make_web_app():
+    return hgwebdir("/home/freehg/hgweb.config")
+
+WSGIServer(wsgiapplication(make_web_app)).run()