mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
喵喵更新自动重启功能适配node app的启动方式
This commit is contained in:
parent
7a86df5094
commit
802125727c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user