From 68f3387539a482daf59e124464c8d15a8d03ae9b Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Fri, 14 Feb 2025 12:43:49 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(make)=20make=20run=20command?= =?UTF-8?q?=20starting=20everything?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The run command is not starting the frontend application. We change the run commands. The run command is strating everything. The run-backend command is starting all services needed to use the backend application. --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 99666246..17690837 100644 --- a/Makefile +++ b/Makefile @@ -80,12 +80,12 @@ bootstrap: \ data/static \ create-env-files \ build \ - run-with-frontend \ migrate \ demo \ back-i18n-compile \ mails-install \ - mails-build + mails-build \ + run .PHONY: bootstrap # -- Docker/compose @@ -119,16 +119,17 @@ logs: ## display app-dev logs (follow mode) @$(COMPOSE) logs -f app-dev .PHONY: logs -run: ## start the wsgi (production) and development server +run-backend: ## Start only the backend application and all needed services @$(COMPOSE) up --force-recreate -d celery-dev @$(COMPOSE) up --force-recreate -d y-provider @$(COMPOSE) up --force-recreate -d nginx -.PHONY: run +.PHONY: run-backend -run-with-frontend: ## Start all the containers needed (backend to frontend) - @$(MAKE) run +run: ## start the wsgi (production) and development server +run: + @$(MAKE) run-backend @$(COMPOSE) up --force-recreate -d frontend-dev -.PHONY: run-with-frontend +.PHONY: run status: ## an alias for "docker compose ps" @$(COMPOSE) ps