Created
April 15, 2011 03:12
-
-
Save logic/921065 to your computer and use it in GitHub Desktop.
Simple wrapper for running hgwebdir under mongrel2
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 m2wsgi.io.standard import WSGIHandler | |
from mercurial import demandimport; demandimport.enable() | |
from mercurial.hgweb.hgwebdir_mod import hgwebdir | |
app = hgwebdir('/path/to/hgweb.config') | |
handler = WSGIHandler(app, "tcp://127.0.0.1:9999") | |
handler.serve() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a quick wrapper for running hgwebdir as a 0mq handler under Mongrel2, using @rfk's m2wsgi.