From f8c5f7cd8c0fc24bcaedee48a20a13c12055d1d9 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Tue, 29 Apr 2025 18:35:28 +0800 Subject: [PATCH] =?UTF-8?q?"chore:=20=E6=9B=B4=E6=96=B0=E7=94=9F=E6=80=81?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=BAES=E6=A8=A1=E5=9D=97=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.mjs | 8 ++++---- package.json | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ecosystem.config.mjs b/ecosystem.config.mjs index fed7c9b..2207418 100644 --- a/ecosystem.config.mjs +++ b/ecosystem.config.mjs @@ -1,13 +1,13 @@ const PORT = 5006; -module.exports = { +export default { apps: [ { name: 'xhs-api-server', script: 'server.py', // 替换为您的Python脚本路径 interpreter: 'python', // 替换为您的Python解释器路径 env: { - XHS_API_PORT: PORT // 从环境变量获取端口,不存在则使用5005 + XHS_API_PORT: PORT, // 从环境变量获取端口,不存在则使用5005 }, - } - ] + }, + ], }; diff --git a/package.json b/package.json index 3445a20..dbcc794 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "@kevisual/social-xhs-api-server", + "type": "module", "scripts": { "start": "pm2 start ecosystem.config.mjs" }