production environment with supervisor and crontab

This commit is contained in:
Matej Cotman 2014-01-15 21:18:11 +01:00
parent 77bd3e0496
commit 8210fe90ea
5 changed files with 71 additions and 6 deletions

View file

@ -7,6 +7,8 @@ eggs =
parts +=
pyscripts
supervisor
crontab_reboot
[pyscripts]
@ -15,3 +17,20 @@ eggs = ${buildout:eggs}
interpreter = py
entry-points =
searx-run=searx.webapp:run
[supervisor]
recipe = collective.recipe.supervisor
http-socket = unix
user = searxer
password = ohpleasedochangeme
file = /tmp/supervisor.sock
chmod = 0700
programs =
50 searx ${buildout:bin-directory}/searx-run
[crontab_reboot]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/supervisord