change to flstapi
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
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解释器路径
|
||||
args: ['flask', 'run', '--port', PORT], // 传递端口参数
|
||||
env: {
|
||||
XHS_API_PORT: PORT, // 从环境变量获取端口,不存在则使用5005
|
||||
},
|
||||
args: ['-m uvicorn app:app --host 0.0.0.0 --port', PORT], // 传递端口参数
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user