fix
This commit is contained in:
parent
57a8c65f2b
commit
f23a97f948
|
|
@ -39,9 +39,15 @@ export const code_action: SAction["code"]["action"] = async function (
|
|||
code_startup.process[arg.site_id] = spawn({
|
||||
cmd: ["npm", "run", "startup"],
|
||||
cwd: code.path(arg.site_id, "site", "src"),
|
||||
stdin: "inherit",
|
||||
stdout: "inherit",
|
||||
stderr: "inherit",
|
||||
});
|
||||
code_startup.process[arg.site_id].exited.then((exitCode) => {
|
||||
console.log(
|
||||
`startup script site id ${arg.site_id}, exited: ${exitCode}`
|
||||
);
|
||||
});
|
||||
await waitUntil(1000);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue