forked from zaclys/searxng
production environment with supervisor and crontab
This commit is contained in:
parent
77bd3e0496
commit
8210fe90ea
5 changed files with 71 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue