Skip to content

Commit

Permalink
chore:Add setup_local_force_rebuild target to Makefile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hareshkainthdbt committed Dec 10, 2024
1 parent dce226d commit 5428858
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

0 comments on commit 5428858

Please sign in to comment.