mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 00:01:48 +08:00

Passing --config had no effect when passed. It will now be applied as the last config file and before any env var overrrides.
14 lines
288 B
Go
14 lines
288 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/codegangsta/cli"
|
|
"github.com/grafana/grafana/pkg/services/sqlstore"
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
)
|
|
|
|
func initRuntime(c *cli.Context) {
|
|
setting.NewConfigContext(c.GlobalString("config"))
|
|
sqlstore.NewEngine()
|
|
sqlstore.EnsureAdminUser()
|
|
}
|