Move backend migration to abra.sh command

This commit is contained in:
3wc
2025-06-11 15:32:30 +01:00
parent 703c092e93
commit 1144f4fef3
4 changed files with 10 additions and 12 deletions

View File

@ -21,6 +21,7 @@
* `abra app new lasuite-docs --secrets`
* `abra app config <app-name>`
* `abra app deploy <app-name>`
* `abra app cmd <app-name> backend migrate`
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).

View File

@ -5,7 +5,7 @@
- [x] Fix image uploads
- [ ] Update recipe metadata
- [x] External OIDC server (+ move options to `.env.sample`)
- [ ] Customisable Django `DJANGO_SECRET_KEY` and `DJANGO_SUPERUSER_PASSWORD`
- [x] Customisable Django `DJANGO_SECRET_KEY` and `DJANGO_SUPERUSER_PASSWORD`
- [ ] Versioned recipe release
## Should

View File

@ -1,3 +1,11 @@
# Set any config versions here
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
export NGINX_CONF_VERSION=v2
# environment() {
# # TODO: Add file_env here
# }
migrate() {
python manage.py migrate --noinput
}

View File

@ -99,7 +99,6 @@ services:
- backend
environment:
<<: [*common-env, *postgres-env, *yprovider-env]
DJANGO_CONFIGURATION: Production
healthcheck:
test: ["CMD", "python", "manage.py", "check"]
interval: 15s
@ -107,15 +106,6 @@ services:
retries: 20
start_period: 10s
# backend-migration:
# image: lasuite/impress-backend:v3.3.0
# networks:
# - backend
# command: ["python", "manage.py", "migrate", "--noinput"]
# environment:
# <<: [*common-env, *postgres-env, *yprovider-env]
# DJANGO_CONFIGURATION: Production
celery:
image: lasuite/impress-backend:v3.3.0
networks:
@ -123,7 +113,6 @@ services:
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "INFO"]
environment:
<<: [*common-env, *postgres-env, *yprovider-env]
DJANGO_CONFIGURATION: Production
y-provider:
image: lasuite/impress-y-provider:v3.3.0