contrib/deploy/wsgi.py @ e2948af5b2fb deploy
Close the deploy branch. Further changes should just be made on default.
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Sun, 13 Jun 2010 11:56:23 -0400 |
| parents | 83c03382b6fc |
| children | 1262a21153ac |
# An example WSGI script for serving hg-review's web UI. # Edit as necessary. # If hg-review is not on your webserver's PYTHONPATH, uncomment the lines # below and point it at the hg-review/review directory. import sys sys.path.insert(0, "/path/to/hg-review/review") REPO = '/path/to/your/repo' READ_ONLY = True ALLOW_ANON_COMMENTS = True ANON_USER = 'Anonymous <anonymous@example.com>' from mercurial import hg, ui from web_ui import app from api import ReviewDatastore _ui = ui.ui() _ui.setconfig('ui', 'user', ANON_USER) repo = hg.repository(_ui, REPO) app.read_only = READ_ONLY app.debug = False app.datastore = ReviewDatastore(_ui, repo) application = app