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
1663cbbb
Commit
1663cbbb
authored
Dec 15, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:torkelo/grafana-pro
Conflicts: .bra.toml
parents
90ae59cc
26ec8589
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
19 deletions
+8
-19
.bra.toml
+3
-3
.gitignore
+1
-1
Makefile
+1
-1
grafana
+1
-1
pkg/setting/setting.go
+2
-13
No files found.
.bra.toml
View file @
1663cbbb
[run]
[run]
init_cmds
=
[[
"./
grafana-pro
"
,
"web"
]]
init_cmds
=
[[
"./
bin/grafana
"
,
"web"
]]
watch_all
=
true
watch_all
=
true
watch_dirs
=
[
watch_dirs
=
[
"$WORKDIR/pkg"
,
"$WORKDIR/pkg"
,
...
@@ -9,6 +9,6 @@ watch_dirs = [
...
@@ -9,6 +9,6 @@ watch_dirs = [
watch_exts
=
[
".go"
,
".ini"
]
watch_exts
=
[
".go"
,
".ini"
]
build_delay
=
1500
build_delay
=
1500
cmds
=
[
cmds
=
[
[
"
go
"
,
"build"
],
[
"
make
"
,
"build"
],
[
"./
grafana-pro
"
,
"web"
]
[
"./
bin/grafana
"
,
"web"
]
]
]
.gitignore
View file @
1663cbbb
...
@@ -17,4 +17,4 @@ config.js
...
@@ -17,4 +17,4 @@ config.js
data/sessions
data/sessions
data/*.db
data/*.db
data/log
data/log
/
grafana-pro
/
bin/*
Makefile
View file @
1663cbbb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
all
:
build
all
:
build
build
:
build
:
go build
../pkg/cmd/grafana-pro/
go build
-o
bin/grafana .
setup
:
setup
:
go get github.com/tools/godep
go get github.com/tools/godep
...
...
grafana
@
373118c5
Subproject commit
79beefe57c608b3cd933c5b1f772c8707731a64c
Subproject commit
373118c5eecc5c3645254cb4b862124b55dae980
pkg/setting/setting.go
View file @
1663cbbb
...
@@ -6,7 +6,6 @@ package setting
...
@@ -6,7 +6,6 @@ package setting
import
(
import
(
"net/url"
"net/url"
"os"
"os"
"os/exec"
"path"
"path"
"path/filepath"
"path/filepath"
"runtime"
"runtime"
...
@@ -69,18 +68,8 @@ func init() {
...
@@ -69,18 +68,8 @@ func init() {
log
.
NewLogger
(
0
,
"console"
,
`{"level": 0}`
)
log
.
NewLogger
(
0
,
"console"
,
`{"level": 0}`
)
}
}
// WorkDir returns absolute path of work directory.
func
WorkDir
()
(
string
,
error
)
{
func
WorkDir
()
(
string
,
error
)
{
execPath
,
err
:=
ExecPath
()
p
,
err
:=
filepath
.
Abs
(
"."
)
return
path
.
Dir
(
strings
.
Replace
(
execPath
,
"
\\
"
,
"/"
,
-
1
)),
err
}
func
ExecPath
()
(
string
,
error
)
{
file
,
err
:=
exec
.
LookPath
(
os
.
Args
[
0
])
if
err
!=
nil
{
return
""
,
err
}
p
,
err
:=
filepath
.
Abs
(
file
)
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
err
return
""
,
err
}
}
...
@@ -96,7 +85,7 @@ func NewConfigContext() {
...
@@ -96,7 +85,7 @@ func NewConfigContext() {
Cfg
,
err
=
goconfig
.
LoadConfigFile
(
path
.
Join
(
workDir
,
"conf/grafana.ini"
))
Cfg
,
err
=
goconfig
.
LoadConfigFile
(
path
.
Join
(
workDir
,
"conf/grafana.ini"
))
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Fatal
(
4
,
"Fail to parse '
conf/grafana.ini': %v"
,
err
)
log
.
Fatal
(
4
,
"Fail to parse '
%v/conf/grafana.ini': %v"
,
workDir
,
err
)
}
}
CustomPath
=
os
.
Getenv
(
"GRAFANA_CONF"
)
CustomPath
=
os
.
Getenv
(
"GRAFANA_CONF"
)
...
...
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