提交 ed7b9c1c 编写于 作者: Z zhaoke

runui add custom port.

上级 92263559
......@@ -7,6 +7,7 @@ import (
"os"
"os/exec"
"runtime"
"strconv"
"strings"
"time"
......@@ -58,7 +59,7 @@ func RunServer() (err error) {
func RunUi() (err error) {
var cmd *exec.Cmd
cmd = exec.Command("npm", "run", "serve", "-uuid=ui_auto_test")
cmd = exec.Command("yarn", "run", "serve", "--port", strconv.Itoa(constTestHelper.UiPort), "-uuid=ui_auto_test")
cmd.Dir = constTestHelper.RootPath + constTestHelper.FilePthSep + "ui"
fmt.Println(cmd.String())
......
......@@ -18,7 +18,8 @@ var (
ZentaoPort = 58080
ZentaoSiteUrl = fmt.Sprintf("http://127.0.0.1:%d", ZentaoPort)
ZtfUrl = "http://127.0.0.1:58000/"
UiPort = 58000
ZtfUrl = fmt.Sprintf("http://127.0.0.1:%d/", UiPort)
ZentaoUsername = "admin"
ZentaoPassword = "Test123456."
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册