fix: fix错误
This commit is contained in:
@@ -5,4 +5,7 @@ type MinioConfig = {
|
||||
};
|
||||
const config = useConfig<MinioConfig>();
|
||||
|
||||
/**
|
||||
* 用来放cookie的域名
|
||||
*/
|
||||
export const domain = config.domain || 'xiongxiao.me';
|
||||
|
||||
@@ -18,7 +18,6 @@ export const redis = new Redis({
|
||||
maxRetriesPerRequest: null, // 允许请求重试的次数 (如果需要无限次重试)
|
||||
...config.redis,
|
||||
});
|
||||
console.log('redis', config.redis);
|
||||
|
||||
// 监听连接事件
|
||||
redis.on('connect', () => {
|
||||
|
||||
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user