diff --git a/Makefile b/Makefile index ab5f641..20683ff 100644 --- a/Makefile +++ b/Makefile @@ -32,21 +32,17 @@ test: ## run tests compose_up: ## start containers for this service @$(COMPOSE) up -d -.PHONY: compose_deps_upgrade -compose_deps_upgrade: ## install/upgrade deps - @$(COMPOSE) run --entrypoint mix app do deps.get, deps.compile, compile - -.PHONY: compose_test -compose_test: ## run tests in containers - @$(COMPOSE) run -e MIX_ENV=test --entrypoint make app test +.PHONY: compose_watch +compose_watch: ## start containers for this service watching for updates in filesystem + @$(COMPOSE) up -w .PHONY: compose_database_create compose_database_create: - @$(COMPOSE) --profile setup run db_setup + @$(COMPOSE) run --rm --entrypoint mix app ecto.create .PHONY: compose_database_migrate compose_database_migrate: ## apply migrations to our database - @$(COMPOSE) --profile migrate run db_migrate + @$(COMPOSE) run --rm --entrypoint mix app ecto.migrate .PHONY: compose_database_setup compose_database_setup: compose_database_create compose_database_migrate ## create and apply migrations