DEPLOY_TYPE "copy" is now named "simple", \("copy" will work anyways for a while\)

This commit is contained in:
Andreas Neue 2023-06-14 10:59:43 +02:00
parent 66ff45c76d
commit f6a9688c9d
3 changed files with 10 additions and 0 deletions

16
copy.mk
View file

@ -1,16 +0,0 @@
MANDATORY-copy = DEPLOY_TYPE DEPLOY_HOSTS SSH_USER DEPLOY_PATH DEPLOY_NAME
# copy
#
# this just rsyncs the stuff to the remote server(s) and runs
# pre-/post-deploy and pre-/post-local
pull-copy:
# nop
start-copy:
@- 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); \
)