devfund-website/playbooks/tasks/managepy.yaml
Anna Sirota 23af8e889a Deploy: use uwsgi reload instead of restart
This prevents 502 errors during deploys.
2024-07-01 17:53:16 +02:00

9 lines
289 B
YAML

---
- name: Running Django management command "{{ command }}"
ansible.builtin.shell:
cmd: >
bash -ca 'source {{ env_file }} &&
{{ dir.source }}/.venv/bin/python {{ dir.source }}/manage.py {{ command }}'
chdir: "{{ dir.source }}"
register: management_command_output