reload-compose target calls ./reload.sh on

This commit is contained in:
Andreas Neue 2022-11-21 17:05:57 +01:00
parent 85ccc9bad5
commit d25c72ef66
1 changed files with 13 additions and 0 deletions

View File

@ -53,4 +53,17 @@ restart-compose:
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose restart"; \ ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose restart"; \
) )
restart-swarm:
# nop
reload-compose: 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; \
)