feat: clear app.config.json5

This commit is contained in:
2025-03-26 00:55:03 +08:00
parent 501a92eb88
commit 7d93f0eef3
15 changed files with 356 additions and 426 deletions

View File

@@ -1,11 +1,7 @@
import { useConfig } from '@kevisual/use-config';
import childProcess from 'child_process';
const config = useConfig<{
appName: string;
}>();
export const selfRestart = async () => {
const appName = config.appName || 'codecenter';
const appName = 'codecenter';
// 检测 pm2 是否安装和是否有 appName 这个应用
try {
const res = childProcess.execSync(`pm2 list`);