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) 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; \
)

View File

@ -55,15 +55,3 @@ restart-compose:
restart-swarm: restart-swarm:
# nop # nop
reload-compose:
@- $(foreach host,$(DEPLOY_HOSTS), \
echo "$(host)"; \
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); ./reload.sh; \
)
reload-swarm:
@- $(foreach host,$(DEPLOY_HOSTS), \
echo "$(host)"; \
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); ./reload.sh; \
)