revert: back to stdio ignore
This commit is contained in:
1 parent
d95db24c8e
commit
5d5cd25cf5
1 file changed
+1
-3
+1
-3
@@ -29,12 +29,10 @@ function startBackend() {
|
||||
if (backend) return
|
||||
backend = spawn('node', [TSX, 'src/index.ts'], {
|
||||
cwd: PROJECT_DIR,
|
||||
stdio: ['ignore', 'pipe', 'pipe'],
|
||||
stdio: 'ignore',
|
||||
env: { ...process.env, PORT: process.env.PORT || '3000' },
|
||||
windowsHide: true,
|
||||
})
|
||||
backend.stdout.on('data', (d) => console.log(d.toString().trimEnd()))
|
||||
backend.stderr.on('data', (d) => console.error(d.toString().trimEnd()))
|
||||
isRunning = true
|
||||
updateMenu()
|
||||
backend.on('exit', () => { backend = null; isRunning = false; updateMenu() })
|
||||
|
||||
Reference in new issue
Block a user