summaryrefslogtreecommitdiff
path: root/server.fcgi
diff options
context:
space:
mode:
Diffstat (limited to 'server.fcgi')
-rwxr-xr-xserver.fcgi11
1 files changed, 11 insertions, 0 deletions
diff --git a/server.fcgi b/server.fcgi
new file mode 100755
index 0000000..d8fc53a
--- /dev/null
+++ b/server.fcgi
@@ -0,0 +1,11 @@
1#!/usr/bin/env python
2
3from flup.server.fcgi_fork import WSGIServer
4from mercurial import demandimport; demandimport.enable()
5from mercurial.hgweb.hgwebdir_mod import hgwebdir
6
7
8WSGIServer(hgwebdir('/etc/hgweb.cfg'),
9 bindAddress='/tmp/hgserver.sock',
10 maxRequests=10, minSpare=1, maxSpare=3,
11 maxChildren=3).run()