提交 93ffb047 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

kill ztf process

上级 93a4be25
module.exports = {
electronPackagerConfig: {
"name": "ztf2",
"name": "ztf",
"icon": "./ui/favicon.ico"
},
packagerConfig: {
......
......@@ -41,7 +41,7 @@ export function startZtfServer() {
}
return new Promise((resolve, reject) => {
const cwd = process.env.SERVER_CWD_PATH || path.dirname(serverExePath);
logInfo(`>> Starting ZTF Server from exe path with command "${serverExePath} -P ${portServer}" in "${cwd}"...`);
logInfo(`>> Starting ZTF Server from exe path with command "${serverExePath} -p ${portServer}" in "${cwd}"...`);
const cmd = spawn(serverExePath, ['-p', portServer, "-uuid", uuid], {
cwd,
shell: true,
......@@ -97,8 +97,8 @@ export function startZtfServer() {
return new Promise((resolve, reject) => {
const cwd = process.env.SERVER_CWD_PATH || path.resolve(app.getAppPath(), '../');
logInfo(`>> Starting ZTF development server from source with command "go run cmd/server/main.go -P 8085" in "${cwd}"`);
const cmd = spawn('go', ['run', 'main.go', '-P', '8085'], {
logInfo(`>> Starting ZTF development server from source with command "go run cmd/server/main.go -p ${portServer}" in "${cwd}"`);
const cmd = spawn('go', ['run', 'main.go', '-p', portServer], {
cwd,
shell: true,
});
......
......@@ -22,8 +22,8 @@ var (
// @contact.url https://github.com/easysoft/zentaoatf/issues
// @contact.email 462626@qq.com
func main() {
port = *flag.Int("p", 0, "服务端口")
uuid = *flag.String("uuid", "", "区分服务进程的唯一ID")
flag.IntVar(&port, "p", 0, "服务端口")
flag.StringVar(&uuid, "uuid", "", "区分服务进程的唯一ID")
flag.Parse()
webServer := web.Init(port)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册