public-health-ch/ansible/roles/web/tasks/manage.yaml
2017-04-24 18:09:26 +02:00

19 lines
504 B
YAML

---
#- name: Build a current site
# shell: "docker-compose build web"
- name: Migrate the site data
shell: "docker-compose exec web ./manage.py migrate"
- name: Create administrative user
shell: "docker-compose exec web ./manage.py createsuperuser"
- name: Compress site frontend
shell: "docker-compose exec web ./manage.py compress"
- name: Collect static frontend files
shell: "docker-compose exec web ./manage.py collectstatic"
- name: Start Docker site
shell: "docker-compose up -d"