# HG changeset patch # User Steve Losh # Date 1276444597 14400 # Node ID b0458ebb77ddaa2288de44389fe0aa9b3be9efa7 # Parent 993a35243d1c0360443807c066f563d778782446# Parent e2948af5b2fbcaf49808dd3b4c2bdb006eb4939e Merge deploy. diff -r 993a35243d1c -r b0458ebb77dd .hgignore --- a/.hgignore Sun Jun 13 10:35:31 2010 -0400 +++ b/.hgignore Sun Jun 13 11:56:37 2010 -0400 @@ -4,3 +4,6 @@ .DS_Store tags .ropeproject +*.swo +*.swp +*.log diff -r 993a35243d1c -r b0458ebb77dd contrib/deploy/gunicorn.conf.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/deploy/gunicorn.conf.py Sun Jun 13 11:56:37 2010 -0400 @@ -0,0 +1,10 @@ +# Example gunicorn configuration file. +# Edit as necessary. + +bind = "127.0.0.1:8000" +workers = 2 +daemon = True +pidfile = "gunicorn.pid" +logfile = "gunicorn.log" +proc_name = "gunicorn-hgreview-myrepo" +debug = False diff -r 993a35243d1c -r b0458ebb77dd contrib/deploy/wsgi.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/deploy/wsgi.py Sun Jun 13 11:56:37 2010 -0400 @@ -0,0 +1,26 @@ +# 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 ' + +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