mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(readme): minor readme update
This commit is contained in:
parent
93f3e30cac
commit
3668cb6dd4
@ -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).
|
||||
|
6
build.go
6
build.go
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user