fix selef-start

This commit is contained in:
2025-05-26 23:48:30 +08:00
parent cd30e8af78
commit 41783728c8
4 changed files with 343 additions and 67 deletions

View File

@@ -1,7 +1,7 @@
import childProcess from 'child_process';
export const selfRestart = async () => {
const appName = 'codecenter';
const appName = 'code-center';
// 检测 pm2 是否安装和是否有 appName 这个应用
try {
const res = childProcess.execSync(`pm2 list`);