🔧(helm) add command create_demo

We need to get dummy data in the system
for the moment, it will insert a template
for the PDF endpoint.
We need to run this command after the
migration is made.
This commit is contained in:
Anthony LC
2024-04-12 14:07:51 +02:00
committed by Anthony LC
parent 68c130bd84
commit 5587cf69dd
2 changed files with 18 additions and 0 deletions

View File

@@ -38,6 +38,15 @@ backend:
POSTGRES_PASSWORD: pass
REDIS_URL: redis://default:pass@redis-master:6379/1
migrate:
command:
- "/bin/sh"
- "-c"
- |
python manage.py migrate --no-input &&
python manage.py create_demo --force
restartPolicy: Never
frontend:
envVars:
PORT: 8080

View File

@@ -68,6 +68,15 @@ backend:
name: redis.redis.libre.sh
key: url
migrate:
command:
- "/bin/sh"
- "-c"
- |
python manage.py migrate --no-input &&
python manage.py create_demo --force
restartPolicy: Never
frontend:
image:
repository: lasuite/impress-frontend