support service
This commit is contained in:
parent
354bcd87bb
commit
217f51a6e7
6
main.go
6
main.go
|
@ -41,7 +41,7 @@ func main() {
|
||||||
app.Init(nil)
|
app.Init(nil)
|
||||||
defer app.Shutdown()
|
defer app.Shutdown()
|
||||||
|
|
||||||
app.Start(func() {
|
app.Setup(func() {
|
||||||
|
|
||||||
//load core modules first
|
//load core modules first
|
||||||
modules.Register()
|
modules.Register()
|
||||||
|
@ -92,6 +92,8 @@ func main() {
|
||||||
orm.RegisterSchemaWithIndexName(alerting.Alert{}, "alerting-alerts")
|
orm.RegisterSchemaWithIndexName(alerting.Alert{}, "alerting-alerts")
|
||||||
orm.RegisterSchemaWithIndexName(alerting.AlertingHistory{}, "alerting-alert-history")
|
orm.RegisterSchemaWithIndexName(alerting.AlertingHistory{}, "alerting-alert-history")
|
||||||
alertSrv.GetScheduler().Start()
|
alertSrv.GetScheduler().Start()
|
||||||
})
|
},nil)
|
||||||
|
|
||||||
|
app.Run()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue