fix: migrate during startup
This commit is contained in:
@ -30,5 +30,4 @@ For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||
Before you deploy: `abra app cmd <app> secrets --local`
|
||||
|
||||
After you deploy:
|
||||
- `abra app cmd <app> api migrate`
|
||||
- `abra app cmd <app> api admin`
|
||||
|
2
abra.sh
2
abra.sh
@ -1,5 +1,5 @@
|
||||
export NGINX_CONFIG_VERSION=v2
|
||||
export APP_ENTRYPOINT_VERSION=v1
|
||||
export APP_ENTRYPOINT_VERSION=v2
|
||||
|
||||
secrets() {
|
||||
docker context use default > /dev/null 2>&1
|
||||
|
@ -29,6 +29,9 @@ export DATABASE_URL="postgres://funkwhale:$DATABASE_PASSWORD@db:5432/funkwhale"
|
||||
|
||||
file_env "DJANGO_SECRET_KEY"
|
||||
|
||||
# migrate before starting
|
||||
python manage.py migrate
|
||||
|
||||
# upstream entrypoint
|
||||
# https://dev.funkwhale.audio/funkwhale/funkwhale/-/blob/develop/api/Dockerfile
|
||||
/app/compose/django/entrypoint.sh "$@"
|
||||
|
Reference in New Issue
Block a user