make-deploy/copy.mk

16 lines
379 B
Makefile
Raw Normal View History

2022-12-21 09:57:47 +00:00
MANDATORY-copy = DEPLOY_TYPE DEPLOY_HOSTS SSH_USER DEPLOY_PATH DEPLOY_NAME
2022-09-29 08:25:43 +00:00
# copy
#
# this just rsyncs the stuff to the remote server(s) and runs
2022-10-05 14:02:54 +00:00
# pre-/post-deploy and pre-/post-local
2022-09-29 08:25:43 +00:00
pull-copy:
# nop
start-copy:
2022-10-05 14:02:54 +00:00
@- echo "\n### start"
@- $(foreach host,$(DEPLOY_HOSTS), \
2022-11-07 15:58:26 +00:00
echo "$(host)"; \
2022-10-05 14:02:54 +00:00
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh start.sh"; \
)