chore: add target to connect to a remote host

This commit is contained in:
João Paulo Dubas 2024-09-22 14:12:53 +00:00
parent c3104ac1c7
commit ce214c8593
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,10 @@ compose_database_setup: compose_database_create compose_database_migrate ## cre
compose_ps: ## status of containers compose_ps: ## status of containers
@$(COMPOSE) ps @$(COMPOSE) ps
.PHONY: compose_remote
compose_remote: ## connect to remote node
@$(COMPOSE) exec app ./priv/docker/service/docker-remote.sh
.PHONY: help .PHONY: help
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}'

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
iex --name ex_trainer_remote@127.0.0.1 --hidden --cookie local-cookie --remsh ${HOSTNAME}@$(hostname -i | cut -d ' ' -f1)