From 154854bbe3367b7804619cd01acb9d00b6b3fc75 Mon Sep 17 00:00:00 2001 From: Robert Brennan Date: Thu, 17 Oct 2024 12:40:47 -0400 Subject: [PATCH] run in dev mode in makefile (#4452) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6c89b04586..7b9e142dd1 100644 --- a/Makefile +++ b/Makefile @@ -195,7 +195,7 @@ start-backend: # Start frontend start-frontend: @echo "$(YELLOW)Starting frontend...$(RESET)" - @cd frontend && VITE_BACKEND_HOST=$(BACKEND_HOST_PORT) VITE_FRONTEND_PORT=$(FRONTEND_PORT) npm run start -- --port $(FRONTEND_PORT) + @cd frontend && VITE_BACKEND_HOST=$(BACKEND_HOST_PORT) VITE_FRONTEND_PORT=$(FRONTEND_PORT) npm run dev -- --port $(FRONTEND_PORT) # Common setup for running the app (non-callable) _run_setup: @@ -214,7 +214,7 @@ _run_setup: run: @echo "$(YELLOW)Running the app...$(RESET)" @$(MAKE) -s _run_setup - @cd frontend && echo "$(BLUE)Starting frontend with npm...$(RESET)" && npm run start -- --port $(FRONTEND_PORT) + @cd frontend && echo "$(BLUE)Starting frontend with npm...$(RESET)" && npm run dev -- --port $(FRONTEND_PORT) @echo "$(GREEN)Application started successfully.$(RESET)" # Run the app (in docker)