Explorar o código

更新主函数,增加对QA和MBP环境的端口设置

caipin hai 3 meses
pai
achega
22ea130bf1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      web/main.go

+ 2 - 0
web/main.go

@@ -55,6 +55,8 @@ func main() {
 	debug := utils.GetEnvInfo("DEBUG")
 	if debug == "uat" {
 		port = 6060
+	} else if debug == "qa" || debug == "mbp" {
+		port = 6060
 	}
 
 	app.Listen(fmt.Sprintf(":%d", port))