-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase.cfg
101 lines (87 loc) · 2.42 KB
/
base.cfg
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# chris.shenton.org
# Plone-4.3.3
# Python-2.7
#
# Used local venv to build:
# virtualenv2.7 .venv
# source .venv/bin/activate
# .venv/bin/python bootstrap.py
# bin/buildout -v
#
# ./var must be writable to you to build, 'plone' to run:
# chown -R g+w var
# sudo chown -R plone var
###############################################################################
[buildout]
unzip = true
download-cache = download-cache
versions = versions
show-picked-versions = true
update-versions-file = versions-picked.cfg
extends =
http://dist.plone.org/release/4.3.3/versions.cfg
versions.cfg
passwords.cfg
find-links =
http://dist.plone.org/release/4.3.3/
parts =
zeoserver
instance1
instance2
supervisor
zopepy
eggs =
Zope2
Plone
Pillow
Products.PloneHotfix20110720
develop =
[ports]
zeoserver = 60000
instance1 = 60001
instance2 = 60002
supervisor = 60009
[zeoserver]
recipe = plone.recipe.zeoserver
zeo-address = 127.0.0.1:${ports:zeoserver}
[instance1]
recipe = plone.recipe.zope2instance
user = ${passwords:instance_user}
http-address = 127.0.0.1:${ports:instance1}
zeo-client = on
zeo-address = ${zeoserver:zeo-address}
eggs = ${buildout:eggs}
zcml =
[instance2]
recipe = plone.recipe.zope2instance
user = ${passwords:instance_user}
http-address = 127.0.0.1:${ports:instance2}
zeo-client = on
zeo-address = ${zeoserver:zeo-address}
eggs = ${buildout:eggs}
# any debug eggs?
zcml =
[supervisor]
recipe = collective.recipe.supervisor
plugins = superlance
port = ${ports:supervisor}
umask = 002
serverurl = http://localhost:${supervisor:port}
programs =
10 zeo ${zeoserver:location}/bin/runzeo ${zeoserver:location}
20 instance1 ${buildout:directory}/bin/instance1 [console] true
30 instance2 (autostart=false) ${buildout:directory}/bin/instance2 [console] true
# Only TICK_5, TICK_60, TICK_3600
eventlisteners =
Memmon TICK_60 ${buildout:bin-directory}/memmon [-p instance1=400MB -m [email protected]]
HttpOk TICK_3600 ${buildout:bin-directory}/httpok [-p instance1 -t 180 -m [email protected] http://${instance1:http-address}/chris.shenton.org]
[zopepy]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = zopepy
scripts = zopepy
[chowns]
# This is a hack that lets me buildout as non-root.
# TODO: supervisor should be running daemons as non-root.
recipe = plone.recipe.command
command = sudo chown -R ${buildout:effective-user} ${buildout:directory}/var