make-deploy/simple.mk

19 lines
477 B
Makefile

MANDATORY-copy = DEPLOY_TYPE DEPLOY_HOSTS SSH_USER DEPLOY_PATH DEPLOY_NAME
MANDATORY-simple = $(MANDATORY-copy)
# copy
#
# this just rsyncs the stuff to the remote server(s) and runs
# build.sh, pre-/post-deploy, pre-/post-local, start.sh, etc.
pull-simple:
# nop
start-simple:
@- echo "\n### start"
@- $(foreach host,$(DEPLOY_HOSTS), \
echo "$(host)"; \
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh start.sh"; \
sleep $(DEPLOY_START_DELAY); \
)