From ad6ef5695f57e4c08be7b43bb4b424c00d752323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=AF=E7=B1=B3?= <92624354+nuomiaa@users.noreply.github.com> Date: Thu, 17 Mar 2022 13:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entity/commands/general/general _start.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entity/commands/general/general _start.ts b/src/entity/commands/general/general _start.ts index 434fddf..1594df0 100644 --- a/src/entity/commands/general/general _start.ts +++ b/src/entity/commands/general/general _start.ts @@ -91,7 +91,7 @@ export default class GeneralStartCommand extends InstanceCommand { // 命令解析 const commandList = commandStringToArray(instance.config.startCommand); const commandExeFile = commandList[0]; - const commnadParameters = commandList.slice(1); + const commandParameters = commandList.slice(1); if (commandList.length === 0) { return instance.failure(new StartupError("无法启动实例,启动命令为空")); } @@ -105,7 +105,7 @@ export default class GeneralStartCommand extends InstanceCommand { // 创建子进程 // 参数1直接传进程名或路径(含空格),无需双引号 - const process = spawn(commandExeFile, commnadParameters, { + const process = spawn(commandExeFile, commandParameters, { cwd: instance.config.cwd, stdio: "pipe", windowsHide: true @@ -124,7 +124,7 @@ ${instance.config.startCommand} 启动命令解析体: 程序:${commandExeFile} -参数:${JSON.stringify(commnadParameters)} +参数:${JSON.stringify(commandParameters)} 请将此信息报告给管理员,技术人员或自行排查故障。 `