added superuser support in apps.lyric.admin & new manage.py cmd ensure_superuser; .tests.integrated.test_admin & .test_management_commands green
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -133,11 +133,12 @@
|
||||
DJANGO_DEBUG_FALSE: "1"
|
||||
DJANGO_SECRET_KEY: "{{ secret_key.content | b64decode }}"
|
||||
DJANGO_ALLOWED_HOST: "{{ django_allowed_host }}"
|
||||
DJANGO_SUPERUSER_EMAIL: "{{ django_superuser_email }}"
|
||||
DJANGO_SUPERUSER_PASSWORD: "{{ django_superuser_password }}"
|
||||
DATABASE_URL: "postgresql://gamearray:{{ postgres_password }}@gamearray_postgres/gamearray"
|
||||
MAILGUN_API_KEY: "{{ mailgun_api_key }}"
|
||||
CELERY_BROKER_URL: "redis://gamearray_redis:6379/0"
|
||||
REDIS_URL: "redis://gamearray_redis:6379/1"
|
||||
|
||||
networks:
|
||||
- name: gamearray_net
|
||||
ports:
|
||||
@@ -180,6 +181,11 @@
|
||||
container: gamearray
|
||||
command: python manage.py migrate
|
||||
|
||||
- name: Ensure superuser exists
|
||||
community.docker.docker_container_exec:
|
||||
container: gamearray
|
||||
command: python manage.py ensure_superuser
|
||||
|
||||
handlers:
|
||||
- name: Restart nginx
|
||||
ansible.builtin.service:
|
||||
|
||||
Reference in New Issue
Block a user