-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_production.cfg
77 lines (67 loc) · 1.95 KB
/
local_production.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
# This is a deployment-buildout common to all sites.
# To test a deployment locally change teh variables backupdir and vardir
[buildout]
extends =
https://raw.github.com/starzel/buildout/4.3/linkto/base.cfg
# If you want you can have you eggs picked
#allow-picked-versions = true
# comment out what you need
parts +=
${buildout:base-parts}
# Choose one!
# ${buildout:zeo-ha-parts}
${buildout:zeo-single-parts}
# ${buildout:varnish-parts}
# Modify templates/supervisor.conf as needed for production
# All programs there are commented out
# ${buildout:supervisor-parts}
# ${buildout:cron-parts}
logrotate
precompiler
backupdir = /home/starzel/backup/${buildout:site}
vardir = /home/starzel/var/${buildout:site}
logdir = ${buildout:vardir}/log
# Strictly optional
# Unfortunately this is needed for each client, but you can do
# copy and paste
#[zeoclientX]
# Longrequest logging
#environment-vars =
# longrequestlogger_file ${buildout:logdir}/${:_buildout_section_name_}_longrequest.log
# longrequestlogger_timeout 4
# longrequestlogger_interval 2
# Sentry logging
#event-log-custom =
# %import raven.contrib.zope
# <logfile>
# path ${buildout:logdir}/${:_buildout_section_name_}.log
# level INFO
# </logfile>
# <sentry>
# dsn <YOURDSN>
# level ERROR
# </sentry>
# Only add eggs here that you only want in this environment
eggs +=
# Longrequest logging
# Products.LongRequestLogger[standalone]
# Sentry logging
# raven
[ports]
# Adjust the ports if necessary (e.g. if you run multiple sites without modifying /etc/hosts)
varnish = 8080
haproxy = 8081
zeoclient1 = 8082
zeoclient2 = 8083
zeoclient_debug = 8084
zeoserver = 8100
# Edit /etc/hosts so you can use "localip = ${buildout:site}" to run all sites on the same port.
instance = 8080
[bindips]
instance = 0.0.0.0
zeoserver = 127.0.0.1
varnish = 127.0.0.1
haproxy = 127.0.0.1
zeoclient1 = 127.0.0.1
zeoclient2 = 127.0.0.1
zeoclient_debug = 127.0.0.1