Updated the "db-reset" task in the Makefile in the Website service to actually delete the local data.

This commit is contained in:
2026-08-10 16:25:05 +02:00
parent 0796aa314e
commit 98cfbdd105
+6 -2
View File
@@ -96,15 +96,19 @@ db-shell: ## Open a SQL shell on the local database instance
--dbname=$(or $(DATABASE_NAME),loud)
.PHONY: db-unmount
db-unmount: ## Stop and remove the local database instance (keeps the data volume)
db-unmount: ## Stop and remove the local database instance while keeping its data
@docker compose \
--profile database down postgres
.PHONY: db-reset
db-reset: ## Stop and remove the local database instance and delete its data volume
db-reset: ## Stop and remove the local database instance, then delete its data
@docker compose \
--profile database down postgres \
--volumes
@if [ -d Tests/DB ]; then \
rm -rf Tests/DB; \
mkdir -p Tests/DB; \
fi
# --- Assets minification ------------------------------------------------------