more everything

This commit is contained in:
stefan.riepenhausen 2025-07-18 10:11:53 +02:00
parent e188f6b7b9
commit 67fd09496f
9 changed files with 94 additions and 55 deletions

View file

@ -3,7 +3,7 @@
# this just rsyncs the stuff to the remote server(s) and runs
# build.sh, pre-/post-deploy, pre-/post-local, start.sh, etc.
ifndef DEPLOY_StART_DELAY
ifndef DEPLOY_START_DELAY
DEPLOY_START_DELAY = 0
endif
@ -13,7 +13,9 @@ pull-simple:
start-simple:
@- echo "\n### start"
@- $(foreach host,$(DEPLOY_HOSTS), \
echo "$(host)"; \
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh start.sh"; \
echo "#host: $(host)"; \
set -e; \
if [ -e start.sh ] ; then ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh start.sh"; fi; \
sleep $(DEPLOY_START_DELAY); \
set +e; \
)