From 7669cc8aafdb1975be1d9c9eaaab87eab66be680 Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 29 Jul 2024 19:01:26 +0700 Subject: [PATCH] fix --- pkgs/api/_deploy.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/api/_deploy.ts b/pkgs/api/_deploy.ts index 0853da4..34d39fb 100644 --- a/pkgs/api/_deploy.ts +++ b/pkgs/api/_deploy.ts @@ -163,11 +163,9 @@ export const _ = { await deploy.init(); const deploys = fs.readdirSync(dir(`/app/web/deploy`)); - if (g.main.process) { + if (g.mode === "prod") { setTimeout(() => { - if (g.main.process) { - g.main.process.kill(); - } + process.exit(); }, 500); }