Compare commits

...

3 Commits

Author SHA1 Message Date
275338d84e add dockerignore to avoid sending secrets
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-22 07:55:28 -07:00
16fabf59a2 use envdir .env.d
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-22 07:52:58 -07:00
e3e5af8de6 fix 'make clean'
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-22 07:49:46 -07:00
3 changed files with 10 additions and 2 deletions

4
.dockerignore Normal file
View File

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

2
.gitignore vendored
View File

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

View File

@@ -37,7 +37,9 @@ lint:
sh -c 'test -z "$$(gofmt -l .)"' sh -c 'test -z "$$(gofmt -l .)"'
debug: build 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: debugger:
cd cmd/historyposter && dlv debug main.go cd cmd/historyposter && dlv debug main.go
@@ -46,7 +48,7 @@ run: build
./$(FN)d ./$(FN)d
clean: clean:
-rm ./$(FN)d -rm ./$(FN)d debug.log
build: ./$(FN)d build: ./$(FN)d