mirror of
https://github.com/fspc/workstand.git
synced 2025-02-23 09:13:23 -05:00
Update deploy.
This commit is contained in:
parent
273f6c2102
commit
82159596cc
@ -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…
x
Reference in New Issue
Block a user