Compare commits

..

2 Commits

Author SHA1 Message Date
8fa00be3c5 🐛 修复指定运行端口无效的BUG
Some checks failed
continuous-integration/drone/push Build is failing
2021-09-09 10:34:29 +08:00
068c8819ce 🎨 优化CI配置 2021-09-09 10:23:32 +08:00
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,10 @@
kind: pipeline kind: pipeline
name: build name: build
# 减少没必要的重复拉取仓库
clone:
disable: true
steps: steps:
- name: 打包Docker镜像并推送 - name: 打包Docker镜像并推送
image: plugins/docker image: plugins/docker

View File

@ -1,6 +1,8 @@
package main package main
import ( import (
"fmt"
"gateway/config"
"gateway/core" "gateway/core"
"gateway/initialization" "gateway/initialization"
"gateway/middleware" "gateway/middleware"
@ -35,5 +37,5 @@ func main() {
// context.String(http.StatusOK, get("get", context.Request.RequestURI, context.GetString("X-Request-Id"), dd)) // context.String(http.StatusOK, get("get", context.Request.RequestURI, context.GetString("X-Request-Id"), dd))
//}) //})
_ = app.Run(":8889") _ = app.Run(fmt.Sprintf(":%v", config.AppInfo.Port))
} }