make-deploy/simple.mk

19 lines
477 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
2023-06-14 12:58:16 +00:00
MANDATORY-simple = $(MANDATORY-copy)
2022-09-29 08:25:43 +00:00
# copy
#
# this just rsyncs the stuff to the remote server(s) and runs
2023-07-03 06:49:44 +00:00
# build.sh, pre-/post-deploy, pre-/post-local, start.sh, etc.
2022-09-29 08:25:43 +00:00
2023-06-14 14:52:32 +00:00
pull-simple:
2022-09-29 08:25:43 +00:00
# nop
2023-06-14 14:52:32 +00:00
start-simple:
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"; \
sleep $(DEPLOY_START_DELAY); \
2022-10-05 14:02:54 +00:00
)