· 8 years ago · Dec 11, 2017, 06:28 PM
1[buildout]
2develop = .
3parts =
4 app
5 mkdirs
6 deploy_ini
7 deploy_cfg
8 debug_ini
9 debug_cfg
10 test
11newest = false
12
13
14[filter:linesman]
15use = egg:linesman#profiler
16
17
18
19# eggs will be installed in the default buildout location
20# (see .buildout/default.cfg in your home directory)
21# unless you specify an eggs-directory option here.
22
23[server]
24host = 127.0.0.1
25port = 5000
26logfiles = ${buildout:directory}/var/log
27
28[app]
29recipe = zc.recipe.egg
30eggs = wire
31 Paste
32 PasteScript
33 PasteDeploy
34
35interpreter = python-console
36
37
38[mkdirs]
39recipe = z3c.recipe.mkdir
40paths =
41 ${server:logfiles}
42
43[deploy_ini]
44recipe = collective.recipe.template
45input = etc/deploy.ini.in
46output = ${buildout:parts-directory}/etc/${:outfile}
47outfile = deploy.ini
48app = wire
49workers = 10
50spawn_if_under = 5
51max_requests = 100
52
53[debug_ini]
54<= deploy_ini
55outfile = debug.ini
56app = wire#debug
57workers = 1
58spawn_if_under = 1
59max_requests = 0
60filter-with = linesman
61
62[deploy_cfg]
63recipe = collective.recipe.template
64input = inline:
65 # Deployment configuration
66 DEBUG = False
67 SECRET_KEY = '98cniudfg8f7g9dfg'
68 USERNAME = 'Fernand'
69output = ${buildout:parts-directory}/etc/deploy.cfg
70
71[debug_cfg]
72recipe = collective.recipe.template
73input = inline:
74 # Debugging configuration
75 DEBUG = True
76 SECRET_KEY = '98cniudfg8f7g9dfga'
77 USERNAME = 'Raoul'
78output = ${buildout:parts-directory}/etc/debug.cfg
79
80[test]
81recipe = pbp.recipe.noserunner
82eggs = wire
83defaults = -v