| a | b | |
|---|
| 0 | + | # -------------------------- |
|---|
| 0 | + | # hgweb.py |
|---|
| 0 | + | # -------------------------- |
|---|
| 0 | + | |
|---|
| 0 | + | from mercurial.hgweb.hgweb_mod import hgweb |
|---|
| 0 | + | from mercurial.hgweb.hgwebdir_mod import hgwebdir |
|---|
| 0 | + | |
|---|
| 0 | + | CONFIG = '/home/martyn/hgweb.config' |
|---|
| 0 | + | application = hgwebdir(CONFIG) |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| 0 | + | # -------------------------- |
|---|
| 0 | + | # hgweb.config |
|---|
| 0 | + | # -------------------------- |
|---|
| 0 | + | |
|---|
| 0 | + | [ui] |
|---|
| 0 | + | username = martyn |
|---|
| 0 | + | editor = vim |
|---|
| 0 | + | |
|---|
| 0 | + | [web] |
|---|
| 0 | + | baseurl =/. |
|---|
| 0 | + | style= gitweb |
|---|
| 0 | + | push_ssl = false |
|---|
| 0 | + | allow_push = * |
|---|
| 0 | + | |
|---|
| 0 | + | [paths] |
|---|
| 0 | + | repo1 = /home/martyn/repo1/ |
|---|
| 0 | + | repo2 = /home/martyn/repo2/ |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| 0 | + | # -------------------------- |
|---|
| 0 | + | # Now run |
|---|
| 0 | + | # -------------------------- |
|---|
| 0 | + | gunicorn -w 3 hgweb:application |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| 0 | + | |
|---|
| ... | |
|---|