chore: install deps before run app
This commit is contained in:
parent
1fc7cc55d7
commit
318f0019d8
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -3,11 +3,17 @@ up: ## Start all the services
|
||||||
docker-compose up -d --remove-orphans
|
docker-compose up -d --remove-orphans
|
||||||
|
|
||||||
.PHONY: start
|
.PHONY: start
|
||||||
start: up ## Start openpod application
|
start: up install-deps ## Start openpod application
|
||||||
docker-compose exec open-pod iex -S mix phx.server
|
docker-compose exec open-pod iex -S mix phx.server
|
||||||
|
|
||||||
|
install-deps: container/open-pod ## Install worms dependencies
|
||||||
|
docker-compose exec open-pod mix deps.get
|
||||||
|
|
||||||
stop: ## Shoutdown services
|
stop: ## Shoutdown services
|
||||||
docker-compose down -v
|
docker-compose down -v
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
||||||
|
container/%:
|
||||||
|
@docker ps -q --no-trunc --filter status=running | grep $$(docker-compose ps -q $*) >/dev/null 2>&1 || docker-compose up -d $*
|
||||||
|
|
Loading…
Reference in a new issue