Skip to content

Commit

Permalink
fix supervisor and add cron
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Jan 26, 2020
1 parent e15c39e commit 6e104e0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion production.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
extends =
base.cfg

parts +=
crontab.reboot

[supervisor]
programs =
200 gunicorn ${buildout:directory}/bin/gunicorn [-c ${buildout:directory}/gunicorn_config.py wsgi:app] true
200 gunicorn ${buildout:directory}/bin/gunicorn [-c ${buildout:directory}/gunicorn_config.py wsgi:app] ${buildout:directory} true

[crontab.reboot]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:directory}/bin/supervisord

0 comments on commit 6e104e0

Please sign in to comment.