From 37b0369a0c4fb0cf5b0d58ea1550f48a4d93e5c1 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Sun, 13 Oct 2024 02:45:08 +0200 Subject: [PATCH] build(Makefile): follow-logs --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fec947d5f..477f8d477 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,7 @@ export CONTAINER_FILE export CONTAINER_FILE_CONTENT export PROD ?= false +export LOGSIZE ?= 1024 # HELP HEADER START # To see the definition of all available targets, take a look into the Makefile. @@ -400,7 +401,7 @@ stop-container-by-id: .PHONY: 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 ##### #############################