Browse Source

Update deploy.

feature/python-error-tracking
Drew Larson 8 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 - name: upload code
action: synchronize src=../bikeshop_project/ dest={{ app_dir }} action: synchronize src=../bikeshop_project/ dest={{ app_dir }} delete=yes
notify: restart supervisor notify: restart supervisor
tags: tags:
- deploy - deploy
@ -10,7 +10,15 @@
tags: tags:
- deploy - 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 }} action: django_manage command=migrate app_path={{ app_dir }} virtualenv={{ venv }} settings={{ settings_module }}
environment: environment:
DJANGO_DB_PASSWORD: "{{ db_user_password }}" DJANGO_DB_PASSWORD: "{{ db_user_password }}"

Loading…
Cancel
Save