You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
457 B
20 lines
457 B
package main
|
|
|
|
import (
|
|
_ "beegoCms/routers"
|
|
beego "github.com/beego/beego/v2/server/web"
|
|
)
|
|
|
|
func main() {
|
|
if beego.BConfig.RunMode == "dev" {
|
|
beego.BConfig.WebConfig.DirectoryIndex = true
|
|
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
|
//是否开启Admin
|
|
beego.BConfig.Listen.EnableAdmin = true
|
|
// Admin监听的地址和端口
|
|
beego.BConfig.Listen.AdminAddr = "localhost"
|
|
beego.BConfig.Listen.AdminPort = 8088
|
|
}
|
|
beego.Run()
|
|
}
|