Add a script to remove unused media

This commit is contained in:
Jean-Marie Favreau
2025-03-01 12:52:58 +01:00
parent a89cc6e856
commit 945db0d967
3 changed files with 6 additions and 0 deletions

View File

@@ -59,6 +59,10 @@ create-reference-locations:
docker exec -it $(BACKEND_APP_NAME) $(SHELL) "-c" \
"python3 manage.py runscript create_reference_locations"
cleanup-unused-media:
docker exec -it $(BACKEND_APP_NAME) $(SHELL) "-c" \
"python3 manage.py cleanup_unused_media"
build-dev:
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f docker-compose.yml up --build -d