chore: add target to connect to a remote host
This commit is contained in:
parent
c3104ac1c7
commit
ce214c8593
4
Makefile
4
Makefile
@ -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}'
|
||||||
|
2
priv/docker/service/docker-remote.sh
Executable file
2
priv/docker/service/docker-remote.sh
Executable 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)
|
Loading…
x
Reference in New Issue
Block a user