Commit 45b72b06 authored by astaxie's avatar astaxie

Merge pull request #1334 from ElvizLai/patch-2

Update beego.go
parents 9e969957 9fd57183
......@@ -248,6 +248,8 @@ func AddAPPStartHook(hf hookfunc) {
// beego.Run(":8089")
// beego.Run("127.0.0.1:8089")
func Run(params ...string) {
initBeforeHttpRun()
if len(params) > 0 && params[0] != "" {
strs := strings.Split(params[0], ":")
if len(strs) > 0 && strs[0] != "" {
......@@ -257,7 +259,6 @@ func Run(params ...string) {
HttpPort, _ = strconv.Atoi(strs[1])
}
}
initBeforeHttpRun()
if EnableAdmin {
go beeAdminApp.Run()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment