1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-23 09:13:23 -05:00

Update deploy.

This commit is contained in:
Drew Larson 2016-07-07 15:57:32 -06:00
parent 273f6c2102
commit 82159596cc

View File

@ -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 }}"