Python
22 Jan 2009 HTML Text
 
 
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#!/usr/bin/env python
import sys 
from mercurial.hgweb.hgwebdir_mod import hgwebdir
from mercurial.hgweb.request import wsgiapplication
from flup.server.fcgi import WSGIServer

def make_web_app():
   return hgwebdir('/web/hgwebdir.conf')

WSGIServer(wsgiapplication(make_web_app),
           umask=0000,
           bindAddress='/var/run/www/hg.pydev.ru.sock').run()