build(Makefile): fix log-% targets
This commit is contained in:
parent
8c66df1872
commit
81094515dc
7
Makefile
7
Makefile
@ -363,8 +363,8 @@ stop-container-by-id:
|
||||
|
||||
.PHONY: log-%
|
||||
# HELP(log-{database,memcached,minio,backend,frontend,hoogle}): inspect output of a given (currently running) service. When a service supports multiple running instances in one develop (i.e. backend), you need to specify the exact instance by its associated file (e.g. backend-1, backend-2, etc.), please check the contents of the develop/ directory for a list of running instances.
|
||||
log-%:
|
||||
$(CONTAINER_COMMAND) logs --follow --tail=$(LOGSIZE) `cat develop/$(CURRENT_DEVELOP)/$* | grep CONTAINER_ID= | sed 's/^CONTAINER_ID=//'`
|
||||
log-%: --develop
|
||||
$(CONTAINER_COMMAND) logs --follow --tail=$(LOGSIZE) `cat $(DEVELOP)/$* | grep CONTAINER_ID= | sed 's/^CONTAINER_ID=//'`
|
||||
|
||||
##### CONTAINER TARGETS #####
|
||||
#############################
|
||||
@ -374,7 +374,8 @@ log-%:
|
||||
|
||||
DATE := $(shell date +'%Y-%m-%dT%H-%M-%S')
|
||||
|
||||
SET_DEVELOP = $(eval DEVELOP=develop/`ls -1 develop | tail -n1`)
|
||||
CURR_DEV = $(shell ls -1 develop | tail -n1)
|
||||
SET_DEVELOP = $(eval DEVELOP=develop/$$(CURR_DEV))
|
||||
NEW_DEVELOP = $(eval DEVELOP=develop/$$(DATE))
|
||||
|
||||
.PHONY: new-develop
|
||||
|
||||
Loading…
Reference in New Issue
Block a user