make superuser creation manual

This commit is contained in:
Clemens 2024-06-03 10:05:22 +02:00
parent f8abf9a414
commit 9201aba498
2 changed files with 9 additions and 1 deletions

View file

@ -63,10 +63,18 @@ To set up you need:
Apply this file on your cluster with `kubectl apply -f application.yaml`. Apply this file on your cluster with `kubectl apply -f application.yaml`.
Done. Done.
## Setup
`python manage.py createsuperuser --noinput`
## Administration ## Administration
You can access the administration of the taiga installation via: your.taiga.url/admin/ You can access the administration of the taiga installation via: your.taiga.url/admin/
In order to login, you first have to create a superuser.
1. Connect to taiga-back pod: `kubectl exec -it taiga-back-deployment-... -- bash`
2. `source /opt/venv/bin/activate && python manage.py createsuperuser --noinput`
## Backup ## Backup
You need some form of cloud storage like AWS buckets and the respective access credentials You need some form of cloud storage like AWS buckets and the respective access credentials

View file

@ -20,7 +20,7 @@ spec:
image: taigaio/taiga-back:latest image: taigaio/taiga-back:latest
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
command: ["/bin/bash"] command: ["/bin/bash"]
args: ["-c", "source /opt/venv/bin/activate && CELERY_ENABLE=true python manage.py migrate && sleep 15 && python manage.py createsuperuser --noinput"] args: ["-c", "source /opt/venv/bin/activate && CELERY_ENABLE=true python manage.py migrate && sleep 15"]
ports: ports:
- name: http - name: http
containerPort: 8000 containerPort: 8000