From: root Date: Mon, 24 Nov 2008 23:26:25 +0000 (+0100) Subject: hgweb: Point hgwebdir.cgi at /etc/hgweb.conf. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=cb9d7d3a2e7f3827f6858ec76ac2bc35f77c1c05;p=matthijs%2Fservers%2Fdrsnuggles.git hgweb: Point hgwebdir.cgi at /etc/hgweb.conf. /etc/hgweb.conf points hgweb at /data/vcs/hg. --- diff --git a/etc/hgweb.conf b/etc/hgweb.conf new file mode 100644 index 0000000..0549245 --- /dev/null +++ b/etc/hgweb.conf @@ -0,0 +1,2 @@ +[collections] +/ = /data/vcs/hg diff --git a/usr/local/lib/cgi-bin/hgwebdir.cgi b/usr/local/lib/cgi-bin/hgwebdir.cgi index b5c7e79..bd14582 100755 --- a/usr/local/lib/cgi-bin/hgwebdir.cgi +++ b/usr/local/lib/cgi-bin/hgwebdir.cgi @@ -43,5 +43,5 @@ import mercurial.hgweb.wsgicgi as wsgicgi # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples # or use a dictionary with entries like 'virtual/path': '/real/path' -application = hgwebdir('hgweb.config') +application = hgwebdir('/etc/hgweb.conf') wsgicgi.launch(application)