public-health-ch/ansible/roles/web/tasks/manage.yaml

20 lines
504 B
YAML
Raw Normal View History

2017-04-24 12:22:51 +00:00
---
2017-04-24 16:09:26 +00:00
#- 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"
2017-04-24 12:22:51 +00:00
- name: Start Docker site
2017-04-24 16:09:26 +00:00
shell: "docker-compose up -d"