feature DEPLOY_START_DELAY, adds a delay when (re)starting targets after deployment
This commit is contained in:
parent
b5d5a6f323
commit
6ab5e15f8a
4
Makefile
4
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
DEPLOY_START_DELAY = 0
|
||||||
|
|
||||||
-include secrets.mk
|
-include secrets.mk
|
||||||
include config.mk
|
include config.mk
|
||||||
-include $(DEPLOY_CONFIG_OVERRIDE)
|
-include $(DEPLOY_CONFIG_OVERRIDE)
|
||||||
|
@ -96,12 +98,14 @@ endif
|
||||||
pull: pull-$(DEPLOY_TYPE)
|
pull: pull-$(DEPLOY_TYPE)
|
||||||
|
|
||||||
start: start-$(DEPLOY_TYPE)
|
start: start-$(DEPLOY_TYPE)
|
||||||
|
sleep $(DEPLOY_START_DELAY)
|
||||||
|
|
||||||
stop: stop-$(DEPLOY_TYPE)
|
stop: stop-$(DEPLOY_TYPE)
|
||||||
|
|
||||||
logs: logs-$(DEPLOY_TYPE)
|
logs: logs-$(DEPLOY_TYPE)
|
||||||
|
|
||||||
restart: restart-$(DEPLOY_TYPE)
|
restart: restart-$(DEPLOY_TYPE)
|
||||||
|
sleep $(DEPLOY_START_DELAY)
|
||||||
|
|
||||||
reload:
|
reload:
|
||||||
ifneq (,$(wildcard reload.sh))
|
ifneq (,$(wildcard reload.sh))
|
||||||
|
|
Loading…
Reference in New Issue