social-xhs-api-server/ecosystem.config.cjs

18 lines
451 B
JavaScript

const PORT = 5006;
// python -m uvicorn app:app --host 0.0.0.0 --port 5006{
module.exports = {
apps: [
{
name: 'xhs-api-server',
script: 'app.py', // 替换为您的Python脚本路径
interpreter: 'python', // 替换为您的Python解释器路径
instances: 1, // 启动一个实例
autorestart: true, // 自动重启
env: {
XHS_API_PORT: PORT,
NODE_ENV: 'production',
},
},
],
};