##// END OF EJS Templates
automation: support building Python 3 MSI installers...
automation: support building Python 3 MSI installers This is very similar to what we just did for Inno. Differential Revision: https://phab.mercurial-scm.org/D8484

File last commit:

r44058:99e231af default
r45265:5c1f356b default
Show More
hgweb.fcgi
22 lines | 667 B | text/plain | TextLexer
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002 #!/usr/bin/env python
#
# An example FastCGI script for use with flup, edit as necessary
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/path/to/repo/or/config"
Matt Mackall
hgweb: add hint about finding library path with debuginstall
r15475 # Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed modules" path from 'hg debuginstall'):
Gregory Szorc
black: blacken scripts...
r44058 # import sys; sys.path.insert(0, "/path/to/python/lib")
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002
# Uncomment to send python tracebacks to the browser if an error occurs:
Gregory Szorc
black: blacken scripts...
r44058 # import cgitb; cgitb.enable()
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002
Gregory Szorc
black: blacken scripts...
r44058 from mercurial import demandimport
demandimport.enable()
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002 from mercurial.hgweb import hgweb
from flup.server.fcgi import WSGIServer
Gregory Szorc
black: blacken scripts...
r44058
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002 application = hgweb(config)
WSGIServer(application).run()