|
|
@ -85,11 +85,12 @@ go get github.com/grafana/grafana |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### Building the backend |
|
|
|
### Building the backend |
|
|
|
|
|
|
|
Replace X.Y.Z by actual version number. |
|
|
|
``` |
|
|
|
``` |
|
|
|
cd $GOPATH/src/github.com/grafana/grafana |
|
|
|
cd $GOPATH/src/github.com/grafana/grafana |
|
|
|
go run build.go setup (only needed once to install godep) |
|
|
|
go run build.go setup (only needed once to install godep) |
|
|
|
godep restore (will pull down all golang lib dependencies in your current GOPATH) |
|
|
|
godep restore (will pull down all golang lib dependencies in your current GOPATH) |
|
|
|
go build -ldflags "-X main.build_date=`date +%Y-%m-%d` -X main.version=2.6.1 -X main.commit=`git rev-parse --verify HEAD`" |
|
|
|
go build -ldflags "-X main.build_date=`date +%Y-%m-%d` -X main.version=X.Y.Z -X main.commit=`git rev-parse --verify HEAD`" |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|