Macaron and sqllite
This commit is contained in:
@@ -18,6 +18,7 @@ import (
|
||||
"github.com/torkelo/grafana-pro/pkg/setting"
|
||||
"github.com/torkelo/grafana-pro/pkg/social"
|
||||
"github.com/torkelo/grafana-pro/pkg/stores/rethink"
|
||||
"github.com/torkelo/grafana-pro/pkg/stores/sqlstore"
|
||||
)
|
||||
|
||||
var CmdWeb = cli.Command{
|
||||
@@ -68,6 +69,12 @@ func runWeb(*cli.Context) {
|
||||
rethink.Init()
|
||||
social.NewOAuthService()
|
||||
|
||||
// init database
|
||||
sqlstore.LoadModelsConfig()
|
||||
if err := sqlstore.NewEngine(); err != nil {
|
||||
log.Fatal(4, "fail to initialize orm engine: %v", err)
|
||||
}
|
||||
|
||||
log.Info("Starting Grafana-Pro v.1-alpha")
|
||||
|
||||
m := newMacaron()
|
||||
|
||||
Reference in New Issue
Block a user