15:a942df0ad142
Anton Shestakov <av6@dwimlabs.net>, Sat, 25 Jun 2016 14:34:47 +0800
drop some defaults and unrelated config directives from supervisor config - process_name defaults to the part after "program:" - stopsignal defaults to SIGTERM, which also works fine for hgweb - numprocs defaults to 1 - autorestart defaults to "unexpected", which is fine and is less surprising

next change 17:5a3522b5fd5c
previous change 2:88933f6c62bd

roles/hgweb/templates/hgweb.py

Permissions: -rw-r--r--

Other formats: Feeds:
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/home/{{ user }}/hgwebfiles/hgweb.conf"
# Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed modules" path from 'hg debuginstall'):
import sys; sys.path.insert(0, "/home/{{ user }}/hg/")
# Uncomment to send python tracebacks to the browser if an error occurs:
#import cgitb; cgitb.enable()
# enable demandloading to reduce startup time
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb
application = hgweb(config)