wip fix
This commit is contained in:
parent
d7062e979f
commit
40539d762b
|
|
@ -36,10 +36,13 @@ export const code_action: SAction["code"]["action"] = async function (
|
||||||
}
|
}
|
||||||
case "startup-run": {
|
case "startup-run": {
|
||||||
const cs = code_startup.process[arg.site_id];
|
const cs = code_startup.process[arg.site_id];
|
||||||
if (!cs || (cs && cs.killed)) {
|
if (!cs) {
|
||||||
code_startup.process[arg.site_id] = $({
|
code_startup.process[arg.site_id] = $({
|
||||||
cwd: code.path(arg.site_id, "site", "src"),
|
cwd: code.path(arg.site_id, "site", "src"),
|
||||||
})`npm run startup`;
|
})`npm run startup`;
|
||||||
|
code_startup.process[arg.site_id].on("exit", () => {
|
||||||
|
delete code_startup.process[arg.site_id];
|
||||||
|
});
|
||||||
await waitUntil(1000);
|
await waitUntil(1000);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue