From 6f896e72f4eb000aa1868a53648ae164aeef7d8c Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 1 Sep 2023 12:32:04 +0200 Subject: [PATCH] Add migration before superuser creation --- src/main/resources/taiga/back-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/taiga/back-deployment.yaml b/src/main/resources/taiga/back-deployment.yaml index 31408cc..f389e23 100644 --- a/src/main/resources/taiga/back-deployment.yaml +++ b/src/main/resources/taiga/back-deployment.yaml @@ -20,7 +20,7 @@ spec: image: taigaio/taiga-back:latest imagePullPolicy: IfNotPresent command: ["/bin/bash"] - args: ["-c", "source /opt/venv/bin/activate && python manage.py createsuperuser --noinput"] + args: ["-c", "source /opt/venv/bin/activate && CELERY_ENABLE=true python manage.py migrate && sleep 15 && python manage.py createsuperuser --noinput"] ports: - name: http containerPort: 8000