Commit 3668cb6d by Torkel Ödegaard

fix(readme): minor readme update

parent 93f3e30c
......@@ -75,7 +75,7 @@ the latest master builds [here](http://grafana.org/download/builds)
### Dependencies
- Go 1.4
- Go 1.5
- NodeJS
### Get Code
......@@ -90,8 +90,7 @@ Replace X.Y.Z by actual version number.
cd $GOPATH/src/github.com/grafana/grafana
go run build.go setup (only needed once to install godep)
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=X.Y.Z -X main.commit=`git rev-parse --verify HEAD`"
godep go run build.go build
```
### Building frontend assets
......@@ -114,7 +113,7 @@ bra run
### Running
```
./grafana
./bin/grafana-server
```
Open grafana in your browser (default http://localhost:3000) and login with admin user (default user/pass = admin/admin).
......
......@@ -328,9 +328,9 @@ func build(pkg string, tags []string) {
func ldflags() string {
var b bytes.Buffer
b.WriteString("-w")
b.WriteString(fmt.Sprintf(" -X main.version %s", version))
b.WriteString(fmt.Sprintf(" -X main.commit %s", getGitSha()))
b.WriteString(fmt.Sprintf(" -X main.buildstamp %d", buildStamp()))
b.WriteString(fmt.Sprintf(" -X main.version=%s", version))
b.WriteString(fmt.Sprintf(" -X main.commit=%s", getGitSha()))
b.WriteString(fmt.Sprintf(" -X main.buildstamp=%d", buildStamp()))
return b.String()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment