MissingSectionHeaderError at / File contains no section headers. file: hgweb.wsgi, line: 3 'from mercurial import demandimport\n'
MissingSectionHeaderError at / File contains no section headers. file: hgweb.wsgi, line: 3 'from mercurial import demandimport\n'
#!/usr/bin/env python from mercurial import demandimport demandimport.enable() import os os.environ["HGENCODING"] = "UTF-8" from mercurial.hgweb.hgwebdir_mod import hgwebdir from flup.server.fcgi import WSGIServer WSGIServer(hgwebdir('/home/hg/repos/hgweb.config')).run()
# An example WSGI for use with mod_wsgi, edit as necessary # See http://mercurial.selenic.com/wiki/modwsgi for more information # Path to repo or hgweb config to serve (see 'hg help hgweb') config = "/srv/hg/hgweb.config" # Uncomment and adjust if Mercurial is not installed system-wide # (consult "installed modules" path from 'hg debuginstall'): #import sys; sys.path.insert(0, "/path/to/python/lib") # 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)
[uwsgi] plugin = python27 env = PYTHON_EGG_CACHE=/tmp workers = 1 max-requests = 1000 mount = /hg=/srv/hg/hgweb.wsgi manage-script-name = true
File contains no section headers. file: hgweb.wsgi, line: 1 'config = "/home/hg/repos/hgweb.config"\n'