Skip to content

Commit

Permalink
update web launch script
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Aug 19, 2024
1 parent f8a2562 commit 60b1580
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion demo/react-native/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ fs.writeFileSync(

const command = process.platform === 'win32' ? 'npx.cmd' : 'npx';

child_process.fork('react-native', commands, {
child_process.spawn('react-native', commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/react/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fs.writeFileSync(

const command = process.platform === "win32" ? "npx.cmd" : "npx";

child_process.fork("react-scripts", commands, {
child_process.spawn("react-scripts", commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/web/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,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
});

0 comments on commit 60b1580

Please sign in to comment.