[constellation] Make migrations in the deployment while first version is not released

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-03-19 20:36:57 +01:00
parent e87c9bc641
commit dc4f27c84c
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 16 additions and 10 deletions

View File

@ -33,13 +33,3 @@
django_manage:
command: collectstatic
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"

View File

@ -70,6 +70,22 @@
command: compilemessages
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
template:
src: update-motd.d/05-service.j2