This commit is contained in:
Matthew Scragg 2014-02-06 21:40:58 -06:00
parent 904d83ea3c
commit d0777e2b85
15 changed files with 164 additions and 1363 deletions

View file

@ -1,10 +1,3 @@
/etc/supervisor/conf.d/realms.conf:
file.managed:
- source: salt://supervisor/supervisord.conf
supervisor-run:
cmd.run:
- unless: test -e /tmp/supervisord.pid
- name: /usr/local/bin/supervisord
- require:
- file.managed: /etc/supervisor/conf.d/realms.conf
- source: salt://supervisor/supervisord.conf

View file

@ -1,2 +1,3 @@
[program:realms]
command=/home/deploy/virtualenvs/realms/bin/python /home/deploy/realms/manage.py server
user=deploy
command=/home/deploy/realms/virtualenvs/realms/bin/python /home/deploy/realms/manage.py server