Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3668cb6d
Commit
3668cb6d
authored
Dec 01, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(readme): minor readme update
parent
93f3e30c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
README.md
+3
-4
build.go
+3
-3
No files found.
README.md
View file @
3668cb6d
...
@@ -75,7 +75,7 @@ the latest master builds [here](http://grafana.org/download/builds)
...
@@ -75,7 +75,7 @@ the latest master builds [here](http://grafana.org/download/builds)
### Dependencies
### Dependencies
-
Go 1.
4
-
Go 1.
5
-
NodeJS
-
NodeJS
### Get Code
### Get Code
...
@@ -90,8 +90,7 @@ Replace X.Y.Z by actual version number.
...
@@ -90,8 +90,7 @@ 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=X.Y.Z -X main.commit=`git rev-parse --verify HEAD`"
godep go run build.go build
```
```
### Building frontend assets
### Building frontend assets
...
@@ -114,7 +113,7 @@ bra run
...
@@ -114,7 +113,7 @@ bra run
### Running
### Running
```
```
./
grafana
./
bin/grafana-server
```
```
Open grafana in your browser (default http://localhost:3000) and login with admin user (default user/pass = admin/admin).
Open grafana in your browser (default http://localhost:3000) and login with admin user (default user/pass = admin/admin).
...
...
build.go
View file @
3668cb6d
...
@@ -328,9 +328,9 @@ func build(pkg string, tags []string) {
...
@@ -328,9 +328,9 @@ func build(pkg string, tags []string) {
func
ldflags
()
string
{
func
ldflags
()
string
{
var
b
bytes
.
Buffer
var
b
bytes
.
Buffer
b
.
WriteString
(
"-w"
)
b
.
WriteString
(
"-w"
)
b
.
WriteString
(
fmt
.
Sprintf
(
" -X main.version
%s"
,
version
))
b
.
WriteString
(
fmt
.
Sprintf
(
" -X main.version
=
%s"
,
version
))
b
.
WriteString
(
fmt
.
Sprintf
(
" -X main.commit
%s"
,
getGitSha
()))
b
.
WriteString
(
fmt
.
Sprintf
(
" -X main.commit
=
%s"
,
getGitSha
()))
b
.
WriteString
(
fmt
.
Sprintf
(
" -X main.buildstamp
%d"
,
buildStamp
()))
b
.
WriteString
(
fmt
.
Sprintf
(
" -X main.buildstamp
=
%d"
,
buildStamp
()))
return
b
.
String
()
return
b
.
String
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment