make-deploy/simple.mk

18 lines
403 B
Makefile
Raw Normal View History

2024-06-05 07:43:19 +00:00
#MANDATORY = $(MANDATORY) DEPLOY_PATH
2023-06-14 12:58:16 +00:00
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
)