♻️(make) make run command starting everything
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.
This commit is contained in:
15
Makefile
15
Makefile
@@ -80,12 +80,12 @@ bootstrap: \
|
|||||||
data/static \
|
data/static \
|
||||||
create-env-files \
|
create-env-files \
|
||||||
build \
|
build \
|
||||||
run-with-frontend \
|
|
||||||
migrate \
|
migrate \
|
||||||
demo \
|
demo \
|
||||||
back-i18n-compile \
|
back-i18n-compile \
|
||||||
mails-install \
|
mails-install \
|
||||||
mails-build
|
mails-build \
|
||||||
|
run
|
||||||
.PHONY: bootstrap
|
.PHONY: bootstrap
|
||||||
|
|
||||||
# -- Docker/compose
|
# -- Docker/compose
|
||||||
@@ -119,16 +119,17 @@ logs: ## display app-dev logs (follow mode)
|
|||||||
@$(COMPOSE) logs -f app-dev
|
@$(COMPOSE) logs -f app-dev
|
||||||
.PHONY: logs
|
.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 celery-dev
|
||||||
@$(COMPOSE) up --force-recreate -d y-provider
|
@$(COMPOSE) up --force-recreate -d y-provider
|
||||||
@$(COMPOSE) up --force-recreate -d nginx
|
@$(COMPOSE) up --force-recreate -d nginx
|
||||||
.PHONY: run
|
.PHONY: run-backend
|
||||||
|
|
||||||
run-with-frontend: ## Start all the containers needed (backend to frontend)
|
run: ## start the wsgi (production) and development server
|
||||||
@$(MAKE) run
|
run:
|
||||||
|
@$(MAKE) run-backend
|
||||||
@$(COMPOSE) up --force-recreate -d frontend-dev
|
@$(COMPOSE) up --force-recreate -d frontend-dev
|
||||||
.PHONY: run-with-frontend
|
.PHONY: run
|
||||||
|
|
||||||
status: ## an alias for "docker compose ps"
|
status: ## an alias for "docker compose ps"
|
||||||
@$(COMPOSE) ps
|
@$(COMPOSE) ps
|
||||||
|
|||||||
Reference in New Issue
Block a user