This commit is contained in:
2025-05-03 00:57:07 +08:00
parent ea09fc9b26
commit e7b645d795
5 changed files with 26 additions and 75 deletions

View File

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