-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildout.cfg
86 lines (71 loc) · 2.05 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
[buildout]
parts =
omelette
django
solr-download
transifex-cmds
supervisor
supervisor-cronjob
nginxconf
eggs =
gunicorn
transifex
BeautifulSoup
develop =
src/transifex
unzip = true
versions = versions
[versions]
django = 1.3.1
gunicorn = 0.14.3
transifex = 1.2.1
[solr-download]
recipe = hexagonit.recipe.download
url = http://apache.cs.uu.nl/dist/lucene/solr/3.6.0/apache-solr-3.6.0.zip
md5sum = 5bed55395b4f4a38761d37389f734903
strip-top-level-dir = true
[transifex-cmds]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
${buildout:bin-directory}/django build_solr_schema > ${solr-download:location}/example/solr/conf/schema.xml
${buildout:bin-directory}/django syncdb --noinput
${buildout:bin-directory}/django migrate
${buildout:bin-directory}/django txcreatedirs
${buildout:bin-directory}/django collectstatic --noinput
${buildout:bin-directory}/django txlanguages
${buildout:bin-directory}/django txcreatenoticetypes
${buildout:bin-directory}/django check_permissions
[omelette]
recipe = collective.recipe.omelette
eggs = ${buildout:eggs}
[django]
recipe = djangorecipe
project = easy_transifex
settings = settings
urlconf = transifex.urls
eggs = ${buildout:eggs}
#HACK to include the transifex egg path.
extra-paths =
${omelette:location}/transifex/
[serverconfig]
supervisor-port = 9001
gunicorn-port = 8080
workers = 5
maxrequests = 500
sitename = localhost
[nginxconf]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/nginx.conf.in
output = ${buildout:directory}/etc/${serverconfig:sitename}.nginx.conf
[supervisor]
recipe = collective.recipe.supervisor
port = ${serverconfig:supervisor-port}
programs =
10 gunicorn ${buildout:bin-directory}/django [run_gunicorn --workers=${serverconfig:workers} --timeout 90 127.0.0.1:${serverconfig:gunicorn-port} --preload --max-requests=${serverconfig:maxrequests}]
20 solr java [-jar start.jar] ${solr-download:location}/example/
[supervisor-cronjob]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/supervisord