minor service improvements
This commit is contained in:
@@ -5,11 +5,13 @@
|
|||||||
git:
|
git:
|
||||||
repo: https://src.mehl.mx/mxmehl/autoreply-editor.git
|
repo: https://src.mehl.mx/mxmehl/autoreply-editor.git
|
||||||
dest: autoreply-editor
|
dest: autoreply-editor
|
||||||
|
notify: restart supervisord
|
||||||
|
|
||||||
- name: Deploy config file
|
- name: Deploy config file
|
||||||
template:
|
template:
|
||||||
src: config.py.j2
|
src: config.py.j2
|
||||||
dest: autoreply-editor/config.py
|
dest: autoreply-editor/config.py
|
||||||
|
notify: restart supervisord
|
||||||
|
|
||||||
- name: Install specified python requirements
|
- name: Install specified python requirements
|
||||||
pip:
|
pip:
|
||||||
@@ -46,3 +48,5 @@
|
|||||||
- name: update supervisord
|
- name: update supervisord
|
||||||
command: supervisorctl update
|
command: supervisorctl update
|
||||||
listen: reload supervisord
|
listen: reload supervisord
|
||||||
|
- name: restart supervisord
|
||||||
|
command: supervisorctl restart autoreply-editor
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[program:autoreply-editor]
|
[program:autoreply-editor]
|
||||||
directory=/home/{{ ansible_user_id }}/autoreply-editor
|
directory=/home/{{ ansible_user_id }}/autoreply-editor
|
||||||
command=gunicorn --bind 0.0.0.0:{{ port }} wsgi:app
|
command=gunicorn --bind 0.0.0.0:{{ port }} wsgi:app
|
||||||
startsecs=60
|
startsecs=5
|
||||||
|
|||||||
Reference in New Issue
Block a user