From 5428858d9c9f27a845c0a8164da59db3836400eb Mon Sep 17 00:00:00 2001 From: Haresh Kainth Date: Tue, 10 Dec 2024 09:39:59 +0000 Subject: [PATCH] chore:Add setup_local_force_rebuild target to Makefile Introduce a new make target to allow local setup with forced cache rebuild. This ensures that the local environment is set up and caches are manually rebuilt without relying on Celery tasks. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe56b1b..2588f53 100644 --- a/Makefile +++ b/Makefile @@ -139,7 +139,12 @@ setup_local: # Set up the local environment @echo "$(COLOUR_GREEN)Running initial setup for local environment...$(COLOUR_NONE)" $(MAKE) first-use $(MAKE) start - #$(MAKE) migrations $(MAKE) migrate - #$(MAKE) rebuild_cache @echo "$(COLOUR_GREEN)Local setup complete.$(COLOUR_NONE)" + +setup_local_force_rebuild: + @echo "$(COLOUR_GREEN)Will run initial setup, followed by cache rebuild for local environment...$(COLOUR_NONE)" + $(MAKE) setup_local + @echo "$(COLOUR_GREEN)Manual cache rebuild (not using Celery task)...$(COLOUR_NONE)" + $(MAKE) rebuild_cache + @echo "$(COLOUR_GREEN)Cache rebuilt complete.$(COLOUR_NONE)"