👷(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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user