This commit is contained in:
Rizky 2024-02-01 18:07:27 +07:00
parent 57a8c65f2b
commit f23a97f948
1 changed files with 6 additions and 0 deletions

View File

@ -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;