1
0
Fork 0
mirror of https://git.chefkoch.net/pub/make-deploy synced 2025-05-12 18:44:56 +00:00

reload target calls ./reload.sh on (for all deploy types)

This commit is contained in:
Andreas Neue 2022-11-21 17:09:39 +01:00
parent d25c72ef66
commit c075f26476
2 changed files with 5 additions and 13 deletions

View file

@ -69,4 +69,8 @@ logs: logs-$(DEPLOY_TYPE)
restart: restart-$(DEPLOY_TYPE)
reload: reload-$(DEPLOY_TYPE)
reload:
@- $(foreach host,$(DEPLOY_HOSTS), \
echo "$(host)"; \
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); ./reload.sh; \
)