func main() { dao.InitDB() initRouters() job.InitWorkerPool() go job.Dispatch() resumeJobs() beego.Run() }
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() }