From 16fabf59a2733267f937867631473d4047723569 Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 22 Sep 2020 07:52:58 -0700 Subject: [PATCH] use envdir .env.d --- .gitignore | 2 ++ Makefile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7492d9c..ffb82bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ debug.log historyposterd +.env +.env.d diff --git a/Makefile b/Makefile index 800710a..73aff3a 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,9 @@ lint: sh -c 'test -z "$$(gofmt -l .)"' debug: build - GOTRACEBACK=all HISTORYPOSTER_DEBUG=1 ./$(FN)d 2>&1 | tee -a debug.log + -mkdir -p ./.env.d + echo 1 > ./.env.d/HISTORYPOSTER_DEBUG + GOTRACEBACK=all envdir ./.env.d ./$(FN)d 2>&1 | tee -a debug.log debugger: cd cmd/historyposter && dlv debug main.go