feature DEPLOY_START_DELAY, adds a delay when (re)starting targets after deployment
This commit is contained in:
parent
6ab5e15f8a
commit
0c93338e86
6 changed files with 8 additions and 3 deletions
1
cron.mk
1
cron.mk
|
@ -5,6 +5,7 @@ start-cron:
|
|||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
echo "$(host)"; \
|
||||
ssh $(SSH_USER)@$(host) "crontab -l | sed \"/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d\" | { cat; echo \"#make-deploy-cron:$(DEPLOY_NAME)\"; cat \"$(DEPLOY_PATH)/$(DEPLOY_NAME)/crontab\"; } | crontab -"; \
|
||||
sleep $(DEPLOY_START_DELAY); \
|
||||
)
|
||||
|
||||
stop-cron:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue