make-deploy/simple.mk

20 lines
423 B
Makefile
Raw Normal View History

2024-07-08 07:31:28 +00:00
# simple
2022-09-29 08:25:43 +00:00
#
# 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
2024-07-08 07:31:28 +00:00
ifndef DEPLOY_StART_DELAY
DEPLOY_START_DELAY = 0
endif
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
)