summaryrefslogtreecommitdiff
path: root/production.cfg
diff options
context:
space:
mode:
authorMatej Cotman <cotman.matej@gmail.com>2014-01-15 21:18:11 +0100
committerMatej Cotman <cotman.matej@gmail.com>2014-01-15 21:19:24 +0100
commit8210fe90eaff71d5c78cec07e0172444e8b3de97 (patch)
treec4666cf032522990314b18ccefeadfbe7e83ec9a /production.cfg
parent77bd3e04968e9450203fbb2b0ef4b9eb165c5889 (diff)
downloadsearxng-8210fe90eaff71d5c78cec07e0172444e8b3de97.tar.gz
searxng-8210fe90eaff71d5c78cec07e0172444e8b3de97.zip
production environment with supervisor and crontab
Diffstat (limited to 'production.cfg')
-rw-r--r--production.cfg19
1 files changed, 19 insertions, 0 deletions
diff --git a/production.cfg b/production.cfg
index c2a4f5a8d..b290c1a62 100644
--- a/production.cfg
+++ b/production.cfg
@@ -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