- 区分菜市与果园的调试端口

This commit is contained in:
gazebo
2019-08-27 10:00:40 +08:00
parent e0fdd2055c
commit 7dfa59e6e0
3 changed files with 23 additions and 19 deletions

View File

@@ -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()
}