fix: migrate during startup

This commit is contained in:
f
2025-02-06 16:37:39 -03:00
parent 45e563b875
commit 9dde935a1d
3 changed files with 4 additions and 2 deletions

View File

@ -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`

View File

@ -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

View File

@ -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 "$@"