[constellation] Make migrations in the deployment while first version is not released
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
e87c9bc641
commit
dc4f27c84c
|
@ -33,13 +33,3 @@
|
||||||
django_manage:
|
django_manage:
|
||||||
command: collectstatic
|
command: collectstatic
|
||||||
project_path: "/var/local/constellation"
|
project_path: "/var/local/constellation"
|
||||||
|
|
||||||
- name: Migrate database
|
|
||||||
django_manage:
|
|
||||||
command: migrate
|
|
||||||
project_path: "/var/local/constellation"
|
|
||||||
|
|
||||||
- name: Load initial data
|
|
||||||
django_manage:
|
|
||||||
command: loaddata initial
|
|
||||||
project_path: "/var/local/constellation"
|
|
||||||
|
|
|
@ -70,6 +70,22 @@
|
||||||
command: compilemessages
|
command: compilemessages
|
||||||
project_path: "/var/local/constellation"
|
project_path: "/var/local/constellation"
|
||||||
|
|
||||||
|
# In the future, migrations will be included in the repository.
|
||||||
|
- name: Make Django migrations
|
||||||
|
django_manage:
|
||||||
|
command: makemigrations
|
||||||
|
project_path: "/var/local/constellation"
|
||||||
|
|
||||||
|
- name: Migrate database
|
||||||
|
django_manage:
|
||||||
|
command: migrate
|
||||||
|
project_path: "/var/local/constellation"
|
||||||
|
|
||||||
|
- name: Load initial data
|
||||||
|
django_manage:
|
||||||
|
command: loaddata initial
|
||||||
|
project_path: "/var/local/constellation"
|
||||||
|
|
||||||
- name: Indicate constellation in motd
|
- name: Indicate constellation in motd
|
||||||
template:
|
template:
|
||||||
src: update-motd.d/05-service.j2
|
src: update-motd.d/05-service.j2
|
||||||
|
|
Loading…
Reference in New Issue