This commit is contained in:
熊潇 2025-05-03 01:42:55 +08:00
parent 969413b142
commit 1141ddee3b

View File

@ -4,9 +4,9 @@ module.exports = {
apps: [ apps: [
{ {
name: 'xhs-api-server', name: 'xhs-api-server',
script: 'uvicorn', // 替换为您的Python脚本路径 script: 'app:app --host 0.0.0.0 --port ', // 替换为您的Python脚本路径
interpreter: 'python', // 替换为您的Python解释器路径 interpreter: 'uvicorn', // 替换为您的Python解释器路径
args: ['app:app --host 0.0.0.0 --port', PORT], // 传递端口参数 args: [PORT], // 传递端口参数
exec_mode: 'fork', // 使用fork模式 exec_mode: 'fork', // 使用fork模式
instances: 1, // 启动一个实例 instances: 1, // 启动一个实例
autorestart: true, // 自动重启 autorestart: true, // 自动重启