...
|
...
|
@@ -5,6 +5,7 @@ import ( |
|
|
"github.com/beego/beego/v2/server/web/context"
|
|
|
"github.com/linmadan/egglib-go/log"
|
|
|
"github.com/linmadan/egglib-go/web/beego/filters"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/constant"
|
|
|
"os"
|
|
|
"strconv"
|
|
|
|
...
|
...
|
@@ -16,7 +17,7 @@ func init() { |
|
|
web.BConfig.AppName = "project"
|
|
|
web.BConfig.CopyRequestBody = true
|
|
|
web.BConfig.RunMode = "dev"
|
|
|
web.BConfig.Listen.HTTPPort = 8081
|
|
|
web.BConfig.Listen.HTTPPort = constant.HTTP_PORT
|
|
|
web.BConfig.Listen.EnableAdmin = false
|
|
|
web.BConfig.WebConfig.CommentRouterPath = "/pkg/port/beego/routers"
|
|
|
if os.Getenv("RUN_MODE") != "" {
|
...
|
...
|
|