Updated the "db-reset" task in the Makefile in the Website service to actually delete the local data.
This commit is contained in:
@@ -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 ------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user