🔧(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:
@@ -38,6 +38,15 @@ backend:
|
|||||||
POSTGRES_PASSWORD: pass
|
POSTGRES_PASSWORD: pass
|
||||||
REDIS_URL: redis://default:pass@redis-master:6379/1
|
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:
|
frontend:
|
||||||
envVars:
|
envVars:
|
||||||
PORT: 8080
|
PORT: 8080
|
||||||
|
|||||||
@@ -68,6 +68,15 @@ backend:
|
|||||||
name: redis.redis.libre.sh
|
name: redis.redis.libre.sh
|
||||||
key: url
|
key: url
|
||||||
|
|
||||||
|
migrate:
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-c"
|
||||||
|
- |
|
||||||
|
python manage.py migrate --no-input &&
|
||||||
|
python manage.py create_demo --force
|
||||||
|
restartPolicy: Never
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
image:
|
image:
|
||||||
repository: lasuite/impress-frontend
|
repository: lasuite/impress-frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user