1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:30:56 +00:00

Update beego.go

Maybe the `Hard Coding` should have a higher priority
This commit is contained in:
Yongzheng Lai 2015-09-01 17:52:44 +08:00
parent a89f14d80d
commit 9fd571830d

View File

@ -259,6 +259,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] != "" {
@ -268,7 +270,6 @@ func Run(params ...string) {
HttpPort, _ = strconv.Atoi(strs[1])
}
}
initBeforeHttpRun()
if EnableAdmin {
go beeAdminApp.Run()