make-deploy/simple.mk

18 lines
403 B
Makefile

#MANDATORY = $(MANDATORY) DEPLOY_PATH
# 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); \
)