1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Enable hot-template-reloading in development

This commit is contained in:
Daniel Heath
2018-01-31 14:15:16 +11:00
parent 5e4a317b10
commit c207077877
3 changed files with 19 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
# make -j4 release
VERSION=$(shell git describe)
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -a -installsuffix cgo
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION} -X main.hotCodeReloading=false" -a -installsuffix cgo
.PHONY: build
build:
@@ -11,8 +11,8 @@ build:
.PHONY: quick
quick:
go-bindata static/... templates/...
go build
go-bindata -debug static/... templates/...
go build -ldflags "-X main.hotCodeReloading=true"
.PHONY: linuxarm
linuxarm: