source:
configuration/hg/hg.fcgi
@
1463:196613b37795
| Revision 1463:196613b37795, 362 bytes checked in by niam, 22 months ago (diff) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/usr/bin/env python |
| 2 | # |
| 3 | |
| 4 | import cgitb |
| 5 | cgitb.enable() |
| 6 | |
| 7 | from mercurial import demandimport; demandimport.enable() |
| 8 | |
| 9 | from mercurial.hgweb.hgweb_mod import hgweb |
| 10 | from mercurial.hgweb.request import wsgiapplication |
| 11 | from flup.server.fcgi import WSGIServer |
| 12 | |
| 13 | def application(): |
| 14 | return hgweb("/var/hg/libdodo/", "libdodo") |
| 15 | |
| 16 | WSGIServer(wsgiapplication(application)).run() |
Note: See TracBrowser
for help on using the repository browser.
