Macaron and sqllite

This commit is contained in:
Torkel Ödegaard
2014-11-14 17:13:33 +01:00
parent d7cd2b970e
commit f5b1b192a0
8 changed files with 236 additions and 0 deletions
+7
View File
@@ -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()