wip fix
This commit is contained in:
parent
61241d4466
commit
5c09190a87
|
|
@ -34,11 +34,8 @@ export const code_action: SAction["code"]["action"] = async function (
|
||||||
return { type, status: cs.killed ? "stopped" : "running" };
|
return { type, status: cs.killed ? "stopped" : "running" };
|
||||||
}
|
}
|
||||||
case "startup-run": {
|
case "startup-run": {
|
||||||
if (
|
const cs = code_startup.process[arg.site_id];
|
||||||
!code_startup.process[arg.site_id] ||
|
if (!cs || (cs && cs.killed)) {
|
||||||
(code_startup.process[arg.site_id] &&
|
|
||||||
!code_startup.process[arg.site_id].killed)
|
|
||||||
) {
|
|
||||||
code_startup.process[arg.site_id] = spawn({
|
code_startup.process[arg.site_id] = spawn({
|
||||||
cmd: ["npm", "run", "startup"],
|
cmd: ["npm", "run", "startup"],
|
||||||
cwd: code.path(arg.site_id, "site", "src"),
|
cwd: code.path(arg.site_id, "site", "src"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue