Skip to content

Commit

Permalink
change clean command not to delete data and add a reset-data command …
Browse files Browse the repository at this point in the history
…to remove data
  • Loading branch information
erral committed Nov 13, 2024
1 parent 92fee80 commit 84dba6b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion backend_addon/{{ cookiecutter.__folder_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ build: build-dev ## Install Plone
.PHONY: clean
clean: ## Clean environment
@echo "$(RED)==> Cleaning environment and build$(RESET)"
rm -rf $(VENV_FOLDER) pyvenv.cfg .installed.cfg instance .tox .venv .pytest_cache
rm -rf $(VENV_FOLDER) pyvenv.cfg .installed.cfg instance/etc .tox .venv .pytest_cache

.PHONY: remove-data
remove-data: ## Remove all content
@echo "$(RED)==> Removing all content$(RESET)"
rm -rf $(VENV_FOLDER) instance/var

.PHONY: start
start: ## Start a Plone instance on localhost:8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ build: build-dev ## Install Plone
.PHONY: clean
clean: ## Clean environment
@echo "$(RED)==> Cleaning environment and build$(RESET)"
rm -rf $(VENV_FOLDER) pyvenv.cfg .installed.cfg instance .tox .venv .pytest_cache
rm -rf $(VENV_FOLDER) pyvenv.cfg .installed.cfg instance/etc .tox .venv .pytest_cache

.PHONY: remove-data
remove-data: ## Remove all content
@echo "$(RED)==> Removing all content$(RESET)"
rm -rf $(VENV_FOLDER) instance/var

.PHONY: start
start: ## Start a Plone instance on localhost:8080
Expand Down

0 comments on commit 84dba6b

Please sign in to comment.