main.go 367 B

1234567891011121314151617
  1. package main
  2. import (
  3. _ "eta/eta_forum_task/routers"
  4. "eta/eta_forum_task/services"
  5. beego "github.com/beego/beego/v2/server/web"
  6. )
  7. func main() {
  8. if beego.BConfig.RunMode == "dev" {
  9. beego.BConfig.WebConfig.DirectoryIndex = true
  10. beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
  11. }
  12. // services.EtaForumChartUpdate()
  13. go services.Task()
  14. beego.Run()
  15. }