"chore: 更新生态配置为ES模块格式"

This commit is contained in:
熊潇 2025-04-29 18:35:28 +08:00
parent e4efdfe0e7
commit f8c5f7cd8c
2 changed files with 5 additions and 4 deletions

View File

@ -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
},
}
]
},
],
};

View File

@ -1,5 +1,6 @@
{
"name": "@kevisual/social-xhs-api-server",
"type": "module",
"scripts": {
"start": "pm2 start ecosystem.config.mjs"
}