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"; \
|
2023-05-08 09:47:06 +00:00
|
|
|
sleep $(DEPLOY_START_DELAY); \
|
2022-10-05 14:02:54 +00:00
|
|
|
)
|