Browse Source

use envdir .env.d

master
Jeffrey Paul 7 months ago
parent
commit
16fabf59a2
2 changed files with 5 additions and 1 deletions
  1. +2
    -0
      .gitignore
  2. +3
    -1
      Makefile

+ 2
- 0
.gitignore View File

@@ -1,2 +1,4 @@
debug.log
historyposterd
.env
.env.d

+ 3
- 1
Makefile View File

@@ -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

Loading…
Cancel
Save