fix: fix错误

This commit is contained in:
2025-02-26 01:59:46 +08:00
parent 69721f3944
commit 3477d098b7
14 changed files with 71 additions and 75 deletions

View File

@@ -5,4 +5,7 @@ type MinioConfig = {
};
const config = useConfig<MinioConfig>();
/**
* 用来放cookie的域名
*/
export const domain = config.domain || 'xiongxiao.me';

View File

@@ -18,7 +18,6 @@ export const redis = new Redis({
maxRetriesPerRequest: null, // 允许请求重试的次数 (如果需要无限次重试)
...config.redis,
});
console.log('redis', config.redis);
// 监听连接事件
redis.on('connect', () => {

View File

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