From 98cfbdd105351212b2d9bda8612e873c146621f9 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Mon, 10 Aug 2026 16:05:55 +0200 Subject: [PATCH] Updated the "db-reset" task in the Makefile in the Website service to actually delete the local data. --- Services/Website/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Services/Website/Makefile b/Services/Website/Makefile index a81fb8a..35fd8b7 100644 --- a/Services/Website/Makefile +++ b/Services/Website/Makefile @@ -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 ------------------------------------------------------