Browse Source

Update deploy.

feature/python-error-tracking
Drew Larson 9 years ago
parent
commit
82159596cc
  1. 12
      provision/roles/deploy-code/tasks/main.yml

12
provision/roles/deploy-code/tasks/main.yml

@ -1,6 +1,6 @@
---
- name: upload code
action: synchronize src=../bikeshop_project/ dest={{ app_dir }}
action: synchronize src=../bikeshop_project/ dest={{ app_dir }} delete=yes
notify: restart supervisor
tags:
- deploy
@ -10,7 +10,15 @@
tags:
- deploy
- name: migrate database
- name: migrate registration app
action: django_manage command="migrate registration" app_path={{ app_dir }} virtualenv={{ venv }} settings={{ settings_module }}
environment:
DJANGO_DB_PASSWORD: "{{ db_user_password }}"
DJANGO_SECRET_KEY: "{{ django_key }}"
tags:
- deploy
- name: migrate everything else
action: django_manage command=migrate app_path={{ app_dir }} virtualenv={{ venv }} settings={{ settings_module }}
environment:
DJANGO_DB_PASSWORD: "{{ db_user_password }}"

Loading…
Cancel
Save