示例#1
0
func main() {
	dao.InitDB()
	initRouters()
	job.InitWorkerPool()
	go job.Dispatch()
	resumeJobs()
	beego.Run()
}
示例#2
0
func main() {

	beego.BConfig.WebConfig.Session.SessionOn = true
	dao.InitDB()
	if err := updateInitPassword(adminUserID, os.Getenv("HARBOR_ADMIN_PASSWORD")); err != nil {
		log.Error(err)
	}
	initRouters()
	beego.Run()
}