Skip to content

An open-source, self-hosted system for apps built with web technologies.

Keep runtime behavior unchanged pending a complete Windows lifecycle fix

zohayrslilehbef7c269e838
diff --git a/source/server/core/shell.ts b/source/server/core/shell.ts
index dd1c35b..133af44 100644
--- a/source/server/core/shell.ts
+++ b/source/server/core/shell.ts
@@ -46,7 +46,7 @@ export default function shell(command: string, options: ShellOptions = {}): Asyn
}
const child = spawn(input.command, {
shell: true,
- detached: process.platform !== "win32",
+ detached: true,
cwd: input.cwd,
env: { ...process.env, ...input.env },
stdio: ["ignore", "pipe", "pipe"]
diff --git a/source/server/view/server-runtime/command.ts b/source/server/view/server-runtime/command.ts
index 78e494a..f8fca23 100644
--- a/source/server/view/server-runtime/command.ts
+++ b/source/server/view/server-runtime/command.ts
@@ -24,7 +24,7 @@ export default class CommandServerRuntime implements ServerRuntime {
shell: true,
- detached: process.platform !== "win32",
+ detached: true,
cwd: directory,