cli: fix backend start hanging

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-10-20 14:26:06 +02:00
parent c7d8f66518
commit 7cd34392f5
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Ignore `stdin` when spawning backend child process for the `start` command. Fixing an issue where backend startup would hang.
@@ -95,7 +95,7 @@ export async function startBackendExperimental(options: BackendServeOptions) {
process.execPath,
[...loaderArgs, ...optionArgs, options.entry, ...userArgs],
{
stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
stdio: ['ignore', 'inherit', 'inherit', 'ipc'],
env: {
...process.env,
BACKSTAGE_CLI_CHANNEL: '1',