fix eco
This commit is contained in:
parent
010985d990
commit
969413b142
@ -1,12 +1,16 @@
|
||||
const PORT = 5006;
|
||||
// python -m uvicorn app:app --host 0.0.0.0 --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脚本路径
|
||||
script: 'uvicorn', // 替换为您的Python脚本路径
|
||||
interpreter: 'python', // 替换为您的Python解释器路径
|
||||
args: ['-m uvicorn app:app --host 0.0.0.0 --port', PORT], // 传递端口参数
|
||||
args: ['app:app --host 0.0.0.0 --port', PORT], // 传递端口参数
|
||||
exec_mode: 'fork', // 使用fork模式
|
||||
instances: 1, // 启动一个实例
|
||||
autorestart: true, // 自动重启
|
||||
watch: false, // 不监视文件更改
|
||||
},
|
||||
],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user