This commit is contained in:
wenxu12345
2022-04-25 21:13:32 +08:00
parent bd7266653f
commit ab706f4076
3 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func main() {
gin.SetMode(gin.ReleaseMode)
router := cms_api.NewGinRouter()
router.Use(utils.CorsHandler())
ginPort := flag.Int("port", 8000, "get ginServerPort from cmd,default 8000 as port")
ginPort := flag.Int("port", 10006, "get ginServerPort from cmd,default 8000 as port")
flag.Parse()
fmt.Println("start cms api server, port: ", ginPort)
router.Run(":" + strconv.Itoa(*ginPort))