From b0dbfd05aef42bb26119b3c6bee3ba8d0d978797 Mon Sep 17 00:00:00 2001 From: Ian Lavery Date: Mon, 19 Aug 2024 12:31:26 -0700 Subject: [PATCH 1/2] update web launch script --- demo/web/scripts/run_demo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/web/scripts/run_demo.js b/demo/web/scripts/run_demo.js index fae9151..6cdb54c 100644 --- a/demo/web/scripts/run_demo.js +++ b/demo/web/scripts/run_demo.js @@ -35,6 +35,7 @@ fs.writeFileSync( const command = (process.platform === "win32") ? "npx.cmd" : "npx"; -child_process.fork("http-server", ["-a", "localhost", "-p", "5000"], { +child_process.spawn("http-server", ["-a", "localhost", "-p", "5000"], { execPath: command, + shell: true }); From ea33c390ace718bbb681096e7d64284d5aa7f02f Mon Sep 17 00:00:00 2001 From: Ian Lavery Date: Mon, 19 Aug 2024 16:17:19 -0700 Subject: [PATCH 2/2] demo/ --- demo/web/scripts/run_demo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/web/scripts/run_demo.js b/demo/web/scripts/run_demo.js index 6cdb54c..43f0937 100644 --- a/demo/web/scripts/run_demo.js +++ b/demo/web/scripts/run_demo.js @@ -35,7 +35,7 @@ fs.writeFileSync( const command = (process.platform === "win32") ? "npx.cmd" : "npx"; -child_process.spawn("http-server", ["-a", "localhost", "-p", "5000"], { - execPath: command, - shell: true +child_process.execSync(`${command} http-server -a localhost -p 5000`, { + shell: true, + stdio: 'inherit' });