-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuildout.cfg
73 lines (62 loc) · 1.3 KB
/
buildout.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
[buildout]
develop = .
parts =
app
mkdirs
deploy_ini
deploy_cfg
debug_ini
debug_cfg
test
newest = false
[server]
host = 127.0.0.1
port = 5000
logfiles = ${buildout:directory}/var/log
[app]
recipe = zc.recipe.egg
eggs = collective_stats_logviewer
Paste
PasteScript
PasteDeploy
interpreter = python-console
[mkdirs]
recipe = z3c.recipe.mkdir
paths =
${server:logfiles}
[deploy_ini]
recipe = collective.recipe.template
input = etc/deploy.ini.in
output = ${buildout:parts-directory}/etc/${:outfile}
outfile = deploy.ini
app = collective_stats_logviewer
workers = 10
spawn_if_under = 5
max_requests = 100
[debug_ini]
<= deploy_ini
outfile = debug.ini
app = collective_stats_logviewer#debug
workers = 1
spawn_if_under = 1
max_requests = 0
[deploy_cfg]
recipe = collective.recipe.template
input = inline:
# Deployment configuration
DEBUG = False
SECRET_KEY = 'production key'
USERNAME = 'Fernand'
output = ${buildout:parts-directory}/etc/deploy.cfg
[debug_cfg]
recipe = collective.recipe.template
input = inline:
# Debugging configuration
DEBUG = True
SECRET_KEY = 'development key'
USERNAME = 'csviewer'
output = ${buildout:parts-directory}/etc/debug.cfg
[test]
recipe = pbp.recipe.noserunner
eggs = collective_stats_logviewer
defaults = -v