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" }