Static deploys should force gunicorn reload.

This commit is contained in:
Samuel Clay 2024-11-17 20:23:21 -08:00
parent 1a06af95cb
commit b660ec79fe

View file

@ -126,7 +126,8 @@
register: psaux
- name: Reload gunicorn
command: "kill -HUP {{ psaux.stdout }}"
when: not pulled.changed
# Only restart if there were no changes to the git repo or the static tag was applied
when: not pulled.changed or ansible_tags is search('static')
rescue:
- name: Restart Docker Container
command: "docker restart newsblur_web"