...
|
...
|
@@ -3,6 +3,7 @@ package beego |
|
|
import (
|
|
|
"encoding/json"
|
|
|
"github.com/beego/beego/v2/server/web/context"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"
|
|
|
"os"
|
|
|
"strconv"
|
|
|
|
...
|
...
|
@@ -17,7 +18,7 @@ func init() { |
|
|
web.BConfig.AppName = "project"
|
|
|
web.BConfig.CopyRequestBody = true
|
|
|
web.BConfig.RunMode = "dev"
|
|
|
web.BConfig.Listen.HTTPPort = 8080
|
|
|
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") != "" {
|
...
|
...
|
|