social-xhs-api-server/ecosystem.config.cjs
2025-05-03 00:57:07 +08:00

15 lines
403 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const PORT = 5006;
module.exports = {
apps: [
{
name: 'xhs-api-server',
script: 'app.py', // 替换为您的Python脚本路径
interpreter: 'python', // 替换为您的Python解释器路径
args: ['flask', 'run', '--port', PORT], // 传递端口参数
env: {
XHS_API_PORT: PORT, // 从环境变量获取端口不存在则使用5005
},
},
],
};