Support app version on api.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-09-30 10:49:52 +08:00
parent ca3ec3293d
commit b744208a29
4 changed files with 12 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ update:
glide update
build_static:
go build -ldflags="${EXTLDFLAGS}-s -w -X main.Version=${VERSION}" -o bin/gorush gorush.go
go build -ldflags='${EXTLDFLAGS}-s -w -X main.Version=${VERSION}' -o bin/gorush gorush.go
build: clean
sh script/build.sh $(VERSION)