Move backend migration to abra.sh command
This commit is contained in:
@ -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).
|
||||
|
||||
|
2
TODO.md
2
TODO.md
@ -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
|
||||
|
8
abra.sh
8
abra.sh
@ -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
|
||||
}
|
||||
|
11
compose.yml
11
compose.yml
@ -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
|
||||
|
Reference in New Issue
Block a user