main.go 420 B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. _ "github.com/go-sql-driver/mysql"
  4. _ "github.com/lifei6671/godoc/routers"
  5. _ "github.com/garyburd/redigo/redis"
  6. "github.com/astaxie/beego"
  7. "github.com/lifei6671/godoc/commands"
  8. )
  9. func main() {
  10. commands.RegisterDataBase()
  11. commands.RegisterModel()
  12. commands.RegisterLogger()
  13. commands.RegisterCommand()
  14. commands.RegisterFunction()
  15. beego.SetStaticPath("uploads","uploads")
  16. beego.Run()
  17. }