From 6519a1c0243b01d5d3e4f704e8370f6557d25c7e Mon Sep 17 00:00:00 2001 From: Sirly <45280500+SirlyDreamer@users.noreply.github.com> Date: Thu, 16 Jun 2022 13:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0node=20app=E8=BD=AC=E4=B8=BAn?= =?UTF-8?q?pm=20start=E6=97=B6=E9=80=80=E5=87=BA=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=EF=BC=8C=E9=98=B2=E6=AD=A2=E8=BF=9B=E7=A8=8B=E4=BA=92=E7=9B=B8?= =?UTF-8?q?=E5=B9=B2=E6=89=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/admin.js b/apps/admin.js index 55a0ddfc..26e733ff 100644 --- a/apps/admin.js +++ b/apps/admin.js @@ -189,6 +189,10 @@ export async function updateMiaoPlugin(e) { e.reply("自动重启失败,请手动重启以应用新版喵喵。\nError code: " + error.code + "\n" + error.stack + "\n"); Bot.logger.error('重启失败\n${error.stack}'); return true; + } else if (stdout) { + Bot.logger.mark("重启成功,运行已转为后台,查看日志请用命令:npm run log"); + Bot.logger.mark("停止后台运行命令:npm stop"); + process.exit(); } }) }, 1000); @@ -257,4 +261,4 @@ export async function profileCfg(e, { render }) { ...cfg, }, { e, render, scale: 1.4 }); -} \ No newline at end of file +}