Beego web.Run() runs the server twice
This commit is contained in:
parent
ea8ff729f8
commit
e04f499f24
@ -50,9 +50,10 @@ func AddAPPStartHook(hf ...hookfunc) {
|
|||||||
func Run(params ...string) {
|
func Run(params ...string) {
|
||||||
if len(params) > 0 && params[0] != "" {
|
if len(params) > 0 && params[0] != "" {
|
||||||
BeeApp.Run(params[0])
|
BeeApp.Run(params[0])
|
||||||
}
|
} else {
|
||||||
BeeApp.Run("")
|
BeeApp.Run("")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// RunWithMiddleWares Run beego application with middlewares.
|
// RunWithMiddleWares Run beego application with middlewares.
|
||||||
func RunWithMiddleWares(addr string, mws ...MiddleWare) {
|
func RunWithMiddleWares(addr string, mws ...MiddleWare) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user