natureco-cli 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -100,13 +100,14 @@ async function startGateway() {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
// Open log file for stdio redirection
|
|
103
|
-
const
|
|
103
|
+
const logFd = fs.openSync(LOG_FILE, 'a');
|
|
104
104
|
|
|
105
105
|
// Start as detached background process
|
|
106
|
-
const child = spawn(process.execPath, [
|
|
106
|
+
const child = spawn(process.execPath, [require.resolve('./gateway-server'), '--gateway-worker'], {
|
|
107
107
|
detached: true,
|
|
108
|
-
stdio: ['ignore',
|
|
108
|
+
stdio: ['ignore', logFd, logFd],
|
|
109
109
|
windowsHide: true,
|
|
110
|
+
cwd: os.homedir(),
|
|
110
111
|
});
|
|
111
112
|
|
|
112
113
|
child.unref();
|