Beego web.Run() runs the server twice

This commit is contained in:
Hanjiang Yu 2023-06-19 16:15:08 +08:00
parent ea8ff729f8
commit e04f499f24

View File

@ -50,8 +50,9 @@ func AddAPPStartHook(hf ...hookfunc) {
func Run(params ...string) {
if len(params) > 0 && params[0] != "" {
BeeApp.Run(params[0])
} else {
BeeApp.Run("")
}
BeeApp.Run("")
}
// RunWithMiddleWares Run beego application with middlewares.