- 区分菜市与果园的调试端口
This commit is contained in:
6
main.go
6
main.go
@@ -150,7 +150,11 @@ func main() {
|
||||
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
||||
}
|
||||
go func() {
|
||||
http.ListenAndServe("0.0.0.0:8899", nil)
|
||||
if globals.IsMainProductEnv() {
|
||||
http.ListenAndServe("0.0.0.0:6061", nil)
|
||||
} else {
|
||||
http.ListenAndServe("0.0.0.0:6060", nil)
|
||||
}
|
||||
}()
|
||||
beego.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user