-
Notifications
You must be signed in to change notification settings - Fork 5
/
buildout.cfg
148 lines (122 loc) · 2.79 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[buildout]
parts = app js-build
develop = .
# show-picked-versions = true
# update-versions-file = versions.cfg
extends = release.cfg versions.cfg
relative-paths = true
database = dbname=kanban
raven-logging =
jsraven =
extras =
extra-configure =
extra-options =
[versions]
zc.buildout =
setuptools =
[ports]
app = 8000
[test]
recipe = zc.recipe.testrunner
eggs = twotieredkanban [test]
[js-build]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
npm install
${buildout:directory}/webpack --env.prod
[zdaemon]
recipe = zc.recipe.egg
eggs = zdaemon
[wsgirunner]
recipe = zc.recipe.egg
eggs =
twotieredkanban ${buildout:extras}
zc.zodbwsgi
zc.wsgirunner
Paste
newt.db
[py]
recipe = zc.recipe.egg
eggs = ${wsgirunner:eggs}
${test:eggs}
interpreter = py
initialization =
import ZODB.config, transaction
db = ZODB.config.databaseFromFile(open("${buildout:directory}/db.cfg"))
conn = db.open()
root = conn.root
scripts = py
[dbclient]
recipe = zc.recipe.deployment:configuration
name = ${buildout:directory}/db.cfg
text =
%import newt.db
<newtdb>
<zodb>
<relstorage>
keep-history false
<newt>
<postgresql>
dsn ${buildout:database}
</postgresql>
</newt>
</relstorage>
</zodb>
</newtdb>
[paste.ini]
recipe = zc.recipe.deployment:configuration
static = ${buildout:directory}/static
databases =
configuration =
%${dbclient:text}
logpath = ${buildout:directory}/server.log
text =
[pipeline:main]
pipeline = zodb reload kanban
[app:kanban]
use = egg:bobo
bobo_resources = boboserver:static('/static', '${:static}')
twotieredkanban.apibase
bobo_configure = twotieredkanban.apiutil:config
twotieredkanban.initializedb:config
${buildout:extra-configure}
${buildout:extra-options}
auth = twotieredkanban.emailpw
raven = ${buildout:jsraven}
release = ${buildout:release}
bobo_errors = twotieredkanban.apibase
dsn = ${buildout:database}
[filter:reload]
use = egg:bobo#reload
modules = twotieredkanban
[filter:zodb]
use = egg:zc.zodbwsgi
${:databases}
max_connections = 4
thread_transaction_manager = False
initializer = twotieredkanban.initializedb:initialize
[filter:lint]
use = egg:Paste#lint
[filter:error]
use = egg:Paste#error_catcher
[server:main]
use = egg:twotieredkanban
port = ${ports:app}
dsn = ${buildout:database}
[logging:main]
config =
<logger>
level INFO
<logfile>
path ${:logpath}
</logfile>
${buildout:raven-logging}
</logger>
[app]
=> wsgirunner py
recipe = zc.zdaemonrecipe
b = ${buildout:bin-directory}
p = ${buildout:parts-directory}
program = ${:b}/run-wsgi ${paste.ini:location}