mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 11:11:33 +00:00
commit
45b72b0674
3
beego.go
3
beego.go
@ -248,6 +248,8 @@ func AddAPPStartHook(hf hookfunc) {
|
|||||||
// beego.Run(":8089")
|
// beego.Run(":8089")
|
||||||
// beego.Run("127.0.0.1:8089")
|
// beego.Run("127.0.0.1:8089")
|
||||||
func Run(params ...string) {
|
func Run(params ...string) {
|
||||||
|
initBeforeHttpRun()
|
||||||
|
|
||||||
if len(params) > 0 && params[0] != "" {
|
if len(params) > 0 && params[0] != "" {
|
||||||
strs := strings.Split(params[0], ":")
|
strs := strings.Split(params[0], ":")
|
||||||
if len(strs) > 0 && strs[0] != "" {
|
if len(strs) > 0 && strs[0] != "" {
|
||||||
@ -257,7 +259,6 @@ func Run(params ...string) {
|
|||||||
HttpPort, _ = strconv.Atoi(strs[1])
|
HttpPort, _ = strconv.Atoi(strs[1])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
initBeforeHttpRun()
|
|
||||||
|
|
||||||
if EnableAdmin {
|
if EnableAdmin {
|
||||||
go beeAdminApp.Run()
|
go beeAdminApp.Run()
|
||||||
|
Loading…
Reference in New Issue
Block a user