From 3c6c9f9fbff018b82b89347b4e5333ec55a42974 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Thu, 26 Jun 2025 13:03:45 +0800 Subject: [PATCH] fix: add every hour restart --- ecosystem.config.cjs | 1 + 1 file changed, 1 insertion(+) diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs index 0e37631..109d68c 100644 --- a/ecosystem.config.cjs +++ b/ecosystem.config.cjs @@ -8,6 +8,7 @@ module.exports = { interpreter: 'python', // 替换为您的Python解释器路径 instances: 1, // 启动一个实例 autorestart: true, // 自动重启 + cron_restart: '0 * * * *', // 每小时重启一次 env: { XHS_API_PORT: PORT, NODE_ENV: 'production',