Created
October 13, 2012 08:31
-
-
Save yuja/3883823 to your computer and use it in GitHub Desktop.
run HgWeb under WSGI for debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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