From 802125727c5cf539439dc0f51f046000368756e7 Mon Sep 17 00:00:00 2001 From: Sirly <45280500+SirlyDreamer@users.noreply.github.com> Date: Thu, 16 Jun 2022 04:38:58 +0000 Subject: [PATCH] =?UTF-8?q?=E5=96=B5=E5=96=B5=E6=9B=B4=E6=96=B0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E9=87=8D=E5=90=AF=E5=8A=9F=E8=83=BD=E9=80=82=E9=85=8D?= =?UTF-8?q?node=20app=E7=9A=84=E5=90=AF=E5=8A=A8=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/admin.js b/apps/admin.js index b74fe44e..c9ac339b 100644 --- a/apps/admin.js +++ b/apps/admin.js @@ -181,7 +181,7 @@ export async function updateMiaoPlugin(e) { }), { EX: 30 }); timer = setTimeout(function () { let command = `npm run start`; - if(process.argv[1].includes("pm2")){ + if (process.argv[1].includes("pm2")) { command = `npm run restart`; } exec(command, function (error, stdout, stderr) {