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