👷(helm) command createsuperuser

We sometimes need a superuser in the Django
application, to fix eventual db issues.
This commit adds a superuser on the pods.
This commit is contained in:
Anthony LC
2024-05-13 09:39:33 +02:00
committed by Anthony LC
parent f0b3090a73
commit f0a4de361e
5 changed files with 168 additions and 44 deletions

View File

@@ -47,6 +47,14 @@ backend:
python manage.py create_demo --force
restartPolicy: Never
createsuperuser:
command:
- "/bin/sh"
- "-c"
- |
python manage.py createsuperuser --email admin@example.com --password admin
restartPolicy: Never
frontend:
envVars:
PORT: 8080