forked from mlhamel/agendadulibre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.cfg
80 lines (71 loc) · 2.44 KB
/
production.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
[buildout]
extends=buildout.cfg
parts=eggs
django
uwsgi-download
uwsgi-compilation
nginx
nginx-conf
supervisor
makedirs
[versions]
django=1.4.1
zc.recipe.cmmi=1.3.2
[django]
recipe=djangorecipe
settings = production
wsgi = true
eggs =
${eggs:eggs}
MySQL-python
[uwsgi-download]
recipe = gocept.download
url = http://projects.unbit.it/downloads/uwsgi-1.4.9.tar.gz
strip-top-level-dir = true
md5sum = 3fe995a39e0489621ddcc7acfbd49171
[uwsgi-compilation]
recipe = yaco.recipe.uwsgi
uwsgi-location = ${uwsgi-download:location}
[uwsgi-conf]
socket-path = ${buildout:directory}/var/run/uwsgi.sock
pid-path = ${buildout:directory}/var/run/uwsgi.pid
log-path = ${buildout:directory}/var/log/uwsgi.log
python-path = ${buildout:directory}/${django:project}/
wsgi-path = ${buildout:bin-directory}/django.wsgi
[nginx]
recipe = zc.recipe.cmmi
url = http://nginx.org/download/nginx-1.2.9.tar.gz
extra_options =
--conf-path=${buildout:directory}/etc/nginx/nginx.conf
--error-log-path=${buildout:directory}/var/log/nginx-error.log
--http-log-path=${buildout:directory}/var/log/nginx-access.log
--pid-path=${buildout:directory}/var/run/nginx.pid
--lock-path=${buildout:directory}/var/lock/nginx.lock
--add-module=${uwsgi-download:location}/nginx/
[nginx-conf]
recipe = collective.recipe.template
input = ${buildout:directory}/conf/nginx.conf.in
output = ${buildout:directory}/etc/nginx/nginx.conf
hostname = agendadulibre.qc.ca
port = 8080
project_location = ${buildout:directory}/${django:project}
django_location = ${django:location}
uwsgi_sock_path = ${uwsgi-conf:socket-path}
uwsgi_location = ${uwsgi-download:location}
[supervisor]
recipe = collective.recipe.supervisor
eggs=supervisor
port = 9080
user = admin
password = admin
pidfile = ${buildout:directory}/var/run/supervisord.pid
serverurl = http://localhost:${supervisor:port}
plugins = superlance
programs =
10 nginx (stderr_logfile=NONE stdout_logfile=${buildout:directory}/var/log/nginx-error.log) ${nginx:location}/sbin/nginx [ -c ${buildout:directory}/etc/nginx/nginx.conf ] /tmp true
20 uwsgi (stderr_logfile=NONE stdout_logfile=${uwsgi-conf:log-path}) ${buildout:bin-directory}/uwsgi [ -p 1 -C -A 4 -m -s ${uwsgi-conf:socket-path} --wsgi-file ${uwsgi-conf:wsgi-path} --pythonpath ${uwsgi-conf:python-path} --pidfile ${uwsgi-conf:pid-path} ] /tmp true
[makedirs]
recipe = z3c.recipe.mkdir
paths = parts/nginx/tmp
parts/nginx/log
parts/nginx/var