dashboards as cfg: include cfg files in dist packages

This commit is contained in:
bergquist
2017-12-07 15:27:01 +01:00
parent 1dfa529941
commit 361acd3fa1
13 changed files with 47 additions and 18 deletions
+2 -2
View File
@@ -475,8 +475,8 @@ func NewConfigContext(args *CommandLineArgs) error {
Env = Cfg.Section("").Key("app_mode").MustString("development")
InstanceName = Cfg.Section("").Key("instance_name").MustString("unknown_instance_name")
PluginsPath = makeAbsolute(Cfg.Section("paths").Key("plugins").String(), HomePath)
DatasourcesPath = makeAbsolute(Cfg.Section("paths").Key("datasources").String(), HomePath)
DashboardsPath = makeAbsolute(Cfg.Section("paths").Key("dashboards").String(), HomePath)
DatasourcesPath = Cfg.Section("paths").Key("datasources").String()
DashboardsPath = Cfg.Section("paths").Key("dashboards").String()
server := Cfg.Section("server")
AppUrl, AppSubUrl = parseAppUrlAndSubUrl(server)