Skip to content

Commit

Permalink
add production.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Aug 12, 2012
1 parent 58444fd commit be20c25
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 34 deletions.
37 changes: 37 additions & 0 deletions base.cfg
@@ -0,0 +1,37 @@
[buildout]
extensions =
buildout_versions
develop = .
versions = versions
parts =
scripts
allow-hosts =
*.python.org
eggs =
trolasi

[scripts]
recipe = z3c.recipe.scripts
dependent-scripts = true
eggs =
${buildout:eggs}
interpreter = python

[versions]
buildout-versions = 1.7
distribute = 0.6.28
Flask = 0.9
Jinja2 = 2.6
raven = 2.0.3
requests = 0.13.6
simplejson = 2.4.0
Werkzeug = 0.8.3
z3c.recipe.scripts = 1.0.1
zc.buildout = 1.5.2
zc.recipe.egg = 1.3.2
blinker = 1.2
coverage = 3.5.2
nose = 1.1.2
mock = 1.0b1

# TODO: gunicorn myproject:app
35 changes: 1 addition & 34 deletions buildout.cfg
@@ -1,35 +1,2 @@
[buildout]
extensions =
buildout_versions
develop = .
versions = versions
parts =
scripts
allow-hosts =
*.python.org
eggs =
trolasi

[scripts]
recipe = z3c.recipe.scripts
dependent-scripts = true
eggs =
${buildout:eggs}
interpreter = python

[versions]
buildout-versions = 1.7
distribute = 0.6.28
Flask = 0.9
Jinja2 = 2.6
raven = 2.0.3
requests = 0.13.6
simplejson = 2.4.0
Werkzeug = 0.8.3
z3c.recipe.scripts = 1.0.1
zc.buildout = 1.5.2
zc.recipe.egg = 1.3.2
blinker = 1.2
coverage = 3.5.2
nose = 1.1.2
mock = 1.0b1
extends = base.cfg
21 changes: 21 additions & 0 deletions production.cfg
@@ -0,0 +1,21 @@
[buildout]
extends = base.cfg
parts +=
crontab_reboot
supervisor

[supervisor]
recipe = collective.recipe.supervisor
http-socket = unix
file = /tmp/trola.supervisord.sock
port = 127.0.0.1:${ports:supervisor}
serverurl = http://127.0.0.1:${ports:supervisor}

programs =
10 gunicorn ${buildout:directory}/bin/gunicorn [trolasi:app] true

# on server reboot start supervisord which in turn starts all backend services
[crontab_reboot]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:directory}/bin/supervisord

0 comments on commit be20c25

Please sign in to comment.