build(Makefile): follow-logs
This commit is contained in:
parent
31346fd227
commit
37b0369a0c
3
Makefile
3
Makefile
@ -28,6 +28,7 @@ export CONTAINER_FILE
|
|||||||
export CONTAINER_FILE_CONTENT
|
export CONTAINER_FILE_CONTENT
|
||||||
|
|
||||||
export PROD ?= false
|
export PROD ?= false
|
||||||
|
export LOGSIZE ?= 1024
|
||||||
|
|
||||||
# HELP HEADER START
|
# HELP HEADER START
|
||||||
# To see the definition of all available targets, take a look into the Makefile.
|
# To see the definition of all available targets, take a look into the Makefile.
|
||||||
@ -400,7 +401,7 @@ stop-container-by-id:
|
|||||||
|
|
||||||
.PHONY: log-%
|
.PHONY: log-%
|
||||||
log-%:
|
log-%:
|
||||||
$(CONTAINER_COMMAND) logs `cat develop/$(CURRENT_DEVELOP)/$* | grep CONTAINER_ID= | sed 's/^CONTAINER_ID=//'`
|
$(CONTAINER_COMMAND) logs --follow --tail=$(LOGSIZE) `cat develop/$(CURRENT_DEVELOP)/$* | grep CONTAINER_ID= | sed 's/^CONTAINER_ID=//'`
|
||||||
|
|
||||||
##### CONTAINER TARGETS #####
|
##### CONTAINER TARGETS #####
|
||||||
#############################
|
#############################
|
||||||
|
|||||||
Reference in New Issue
Block a user