Skip to content

Instantly share code, notes, and snippets.

@yuja
Created October 13, 2012 08:31
Show Gist options
  • Save yuja/3883823 to your computer and use it in GitHub Desktop.
Save yuja/3883823 to your computer and use it in GitHub Desktop.
run HgWeb under WSGI for debugging
#!/usr/bin/env python
from werkzeug import serving
#from mercurial import demandimport; demandimport.enable()
from mercurial import hgweb
app = hgweb.hgwebdir('hgweb.config')
serving.run_simple('localhost', 8000, app,
use_debugger=True, use_reloader=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment