Added build ID to footer. Added check for client-server mismatch.
This commit is contained in:
parent
f9c4facad6
commit
ec5b5192da
5 changed files with 77 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -1,10 +1,10 @@
|
|||
.PHONY: build frontend-build dev clean test
|
||||
|
||||
build: frontend-build
|
||||
CGO_ENABLED=0 go build -o turnpike .
|
||||
CGO_ENABLED=0 go build -ldflags "-X main.buildID=$$(git rev-parse --short HEAD)" -o turnpike .
|
||||
|
||||
frontend-build:
|
||||
cd frontend && npm ci && npm run build
|
||||
cd frontend && npm ci && BUILD_ID=$$(git rev-parse --short HEAD) npm run build
|
||||
|
||||
dev:
|
||||
@echo "Run in two terminals:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue