mirror of https://github.com/mindoc-org/mindoc.git
23 lines
420 B
Go
23 lines
420 B
Go
package main
|
|
|
|
import (
|
|
_ "github.com/go-sql-driver/mysql"
|
|
_ "github.com/lifei6671/godoc/routers"
|
|
_ "github.com/garyburd/redigo/redis"
|
|
"github.com/astaxie/beego"
|
|
"github.com/lifei6671/godoc/commands"
|
|
)
|
|
|
|
func main() {
|
|
commands.RegisterDataBase()
|
|
commands.RegisterModel()
|
|
commands.RegisterLogger()
|
|
commands.RegisterCommand()
|
|
commands.RegisterFunction()
|
|
|
|
beego.SetStaticPath("uploads","uploads")
|
|
|
|
|
|
beego.Run()
|
|
}
|