Move backend migration to abra.sh command
This commit is contained in:
@ -21,6 +21,7 @@
|
|||||||
* `abra app new lasuite-docs --secrets`
|
* `abra app new lasuite-docs --secrets`
|
||||||
* `abra app config <app-name>`
|
* `abra app config <app-name>`
|
||||||
* `abra app deploy <app-name>`
|
* `abra app deploy <app-name>`
|
||||||
|
* `abra app cmd <app-name> backend migrate`
|
||||||
|
|
||||||
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||||
|
|
||||||
|
2
TODO.md
2
TODO.md
@ -5,7 +5,7 @@
|
|||||||
- [x] Fix image uploads
|
- [x] Fix image uploads
|
||||||
- [ ] Update recipe metadata
|
- [ ] Update recipe metadata
|
||||||
- [x] External OIDC server (+ move options to `.env.sample`)
|
- [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
|
- [ ] Versioned recipe release
|
||||||
|
|
||||||
## Should
|
## Should
|
||||||
|
8
abra.sh
8
abra.sh
@ -1,3 +1,11 @@
|
|||||||
# Set any config versions here
|
# Set any config versions here
|
||||||
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
|
||||||
export NGINX_CONF_VERSION=v2
|
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
|
- backend
|
||||||
environment:
|
environment:
|
||||||
<<: [*common-env, *postgres-env, *yprovider-env]
|
<<: [*common-env, *postgres-env, *yprovider-env]
|
||||||
DJANGO_CONFIGURATION: Production
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "python", "manage.py", "check"]
|
test: ["CMD", "python", "manage.py", "check"]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
@ -107,15 +106,6 @@ services:
|
|||||||
retries: 20
|
retries: 20
|
||||||
start_period: 10s
|
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:
|
celery:
|
||||||
image: lasuite/impress-backend:v3.3.0
|
image: lasuite/impress-backend:v3.3.0
|
||||||
networks:
|
networks:
|
||||||
@ -123,7 +113,6 @@ services:
|
|||||||
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "INFO"]
|
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "INFO"]
|
||||||
environment:
|
environment:
|
||||||
<<: [*common-env, *postgres-env, *yprovider-env]
|
<<: [*common-env, *postgres-env, *yprovider-env]
|
||||||
DJANGO_CONFIGURATION: Production
|
|
||||||
|
|
||||||
y-provider:
|
y-provider:
|
||||||
image: lasuite/impress-y-provider:v3.3.0
|
image: lasuite/impress-y-provider:v3.3.0
|
||||||
|
Reference in New Issue
Block a user