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
e738a67e
Commit
e738a67e
authored
Dec 30, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed the need for symbolic link to grafana/src
parent
b2f70c12
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
9 deletions
+14
-9
.bra.toml
+5
-2
grafana-pro
+0
-0
pkg/cmd/web.go
+6
-6
pkg/setting/setting.go
+3
-1
templates/404.html
+0
-0
templates/index.html
+0
-0
No files found.
.bra.toml
View file @
e738a67e
[run]
[run]
init_cmds
=
[[
"./bin/grafana"
,
"web"
]]
init_cmds
=
[
[
"make"
,
"build"
],
[
"./bin/grafana"
,
"web"
]
]
watch_all
=
true
watch_all
=
true
watch_dirs
=
[
watch_dirs
=
[
"$WORKDIR/pkg"
,
"$WORKDIR/pkg"
,
"$WORKDIR/
view
s"
,
"$WORKDIR/
template
s"
,
"$WORKDIR/conf"
,
"$WORKDIR/conf"
,
]
]
watch_exts
=
[
".go"
,
".ini"
]
watch_exts
=
[
".go"
,
".ini"
]
...
...
grafana-pro
deleted
100755 → 0
View file @
b2f70c12
File deleted
pkg/cmd/web.go
View file @
e738a67e
...
@@ -22,8 +22,8 @@ import (
...
@@ -22,8 +22,8 @@ import (
var
CmdWeb
=
cli
.
Command
{
var
CmdWeb
=
cli
.
Command
{
Name
:
"web"
,
Name
:
"web"
,
Usage
:
"
Start Grafana Pro web server
"
,
Usage
:
"
grafana web
"
,
Description
:
`Start Grafana Pro server`
,
Description
:
"Starts Grafana backend & web server"
,
Action
:
runWeb
,
Action
:
runWeb
,
Flags
:
[]
cli
.
Flag
{},
Flags
:
[]
cli
.
Flag
{},
}
}
...
@@ -33,14 +33,14 @@ func newMacaron() *macaron.Macaron {
...
@@ -33,14 +33,14 @@ func newMacaron() *macaron.Macaron {
m
.
Use
(
middleware
.
Logger
())
m
.
Use
(
middleware
.
Logger
())
m
.
Use
(
macaron
.
Recovery
())
m
.
Use
(
macaron
.
Recovery
())
mapStatic
(
m
,
"
public
"
,
"public"
)
mapStatic
(
m
,
""
,
"public"
)
mapStatic
(
m
,
"
public/
app"
,
"app"
)
mapStatic
(
m
,
"app"
,
"app"
)
mapStatic
(
m
,
"
public/
img"
,
"img"
)
mapStatic
(
m
,
"img"
,
"img"
)
m
.
Use
(
session
.
Sessioner
(
setting
.
SessionOptions
))
m
.
Use
(
session
.
Sessioner
(
setting
.
SessionOptions
))
m
.
Use
(
macaron
.
Renderer
(
macaron
.
RenderOptions
{
m
.
Use
(
macaron
.
Renderer
(
macaron
.
RenderOptions
{
Directory
:
path
.
Join
(
setting
.
StaticRootPath
,
"views"
)
,
Directory
:
setting
.
TemplatesRootPath
,
IndentJSON
:
macaron
.
Env
!=
macaron
.
PROD
,
IndentJSON
:
macaron
.
Env
!=
macaron
.
PROD
,
Delims
:
macaron
.
Delims
{
Left
:
"[["
,
Right
:
"]]"
},
Delims
:
macaron
.
Delims
{
Left
:
"[["
,
Right
:
"]]"
},
}))
}))
...
...
pkg/setting/setting.go
View file @
e738a67e
...
@@ -52,6 +52,7 @@ var (
...
@@ -52,6 +52,7 @@ var (
CertFile
,
KeyFile
string
CertFile
,
KeyFile
string
RouterLogging
bool
RouterLogging
bool
StaticRootPath
string
StaticRootPath
string
TemplatesRootPath
string
// Session settings.
// Session settings.
SessionOptions
session
.
Options
SessionOptions
session
.
Options
...
@@ -137,7 +138,8 @@ func NewConfigContext() {
...
@@ -137,7 +138,8 @@ func NewConfigContext() {
HttpPort
=
port
HttpPort
=
port
}
}
StaticRootPath
=
Cfg
.
MustValue
(
"server"
,
"static_root_path"
,
workDir
)
StaticRootPath
=
Cfg
.
MustValue
(
"server"
,
"static_root_path"
,
path
.
Join
(
workDir
,
"grafana/src"
))
TemplatesRootPath
=
Cfg
.
MustValue
(
"server"
,
"templates_path"
,
path
.
Join
(
workDir
,
"templates"
))
RouterLogging
=
Cfg
.
MustBool
(
"server"
,
"router_logging"
,
false
)
RouterLogging
=
Cfg
.
MustBool
(
"server"
,
"router_logging"
,
false
)
// PhantomJS rendering
// PhantomJS rendering
...
...
view
s/404.html
→
template
s/404.html
View file @
e738a67e
File moved
view
s/index.html
→
template
s/index.html
View file @
e738a67e
File moved
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