This repository has been archived by the owner on Apr 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
produccio.cfg
79 lines (64 loc) · 1.97 KB
/
produccio.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
[buildout]
parts = pyramid supervisordevel omelette mywsgiapp
versions = versions
eggs-directory = ${buildout:directory}/eggs
eggs =
develop =
extensions = mr.developer
[mywsgiapp]
recipe = collective.recipe.modwsgi
eggs = plonejenkins_middleware
google-api-python-client
cornice
pymongo
config-file = ${buildout:directory}/production.ini
[versions]
# zc.buildout = 1.4.4
#pymongo = 2.1.1
[downloads]
nginx = http://www.nginx.org/download/nginx-1.0.11.tar.gz
[hosts]
nginx = jenkins2.plone.org
[nginx]
recipe = hexagonit.recipe.cmmi
url = ${downloads:nginx}
configure-options =
--with-http_stub_status_module
--conf-path=${buildout:directory}/production/nginx/default.conf
--error-log-path=${buildout:directory}/var/log/nginx-error.log
--pid-path=${buildout:directory}/var/nginx.pid
--lock-path=${buildout:directory}/var/nginx.lock
[nginx-config]
recipe = collective.recipe.template
input = ${buildout:directory}/production/nginx.conf.template
output = ${buildout:directory}/production/nginx.conf
[gunicorn]
workers = 4
max-requests = 1000
user = pyramid
[pyramid]
recipe = zc.recipe.egg
dependent-scripts = true
eggs =
pyramid
gunicorn
cornice
pymongo
pyramid_mongodb
deform
google-api-python-client
plonejenkins.middleware
interpreter = py
[supervisor]
recipe = collective.recipe.supervisor
port = 9101
user = admin
password = admin
serverurl = http://localhost:9101
programs =
10 mongodb ${buildout:directory}/bin/mongod [--port ${mongoconfig:port} --dbpath ${buildout:directory}/var/data --master --logpath ${buildout:directory}/var/log/mongodb.log --directoryperdb --rest] true
20 gunicorn ${buildout:directory}/bin/gunicorn_paster [${buildout:directory}/production.ini --workers ${gunicorn:workers} --max-requests ${gunicorn:max-requests}] true nobody
30 nginx ${nginx:location}/sbin/nginx [-c ${buildout:directory}/production/nginx.conf] true
[omelette]
recipe = collective.recipe.omelette
eggs = ${pyramid:eggs}