Revision 386530373164 () - Diff

Link to this snippet: https://friendpaste.com/7l7ilU3mUQPNymi8JMQIv9
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# --------------------------
# hgweb.py
# --------------------------

from mercurial.hgweb.hgweb_mod import hgweb
from mercurial.hgweb.hgwebdir_mod import hgwebdir

CONFIG = '/home/martyn/hgweb.config'
application = hgwebdir(CONFIG)


# --------------------------
# hgweb.config
# --------------------------

[ui]
username = martyn
editor = vim

[web]
baseurl =/.
style= gitweb
push_ssl = false
allow_push = *

[paths]
repo1 = /home/martyn/repo1/
repo2 = /home/martyn/repo2/


# --------------------------
# Now run
# --------------------------
gunicorn -w 3 hgweb:application