This commit is contained in:
aaron 2026-02-19 21:33:19 +08:00
parent d03072fb33
commit eaa2e90f55

View File

@ -4,11 +4,9 @@ module.exports = {
// 应用基本配置
// ============================================
name: 'stock-agent',
// 使用 -m 模块方式运行,避免模块路径问题
script: 'app.main',
interpreter: 'python3',
// 使用模块模式运行
args: '--', // 告诉 PM2 后面的参数不是 Python 参数
// 直接运行 Python 模块
script: 'python3',
args: '-m app.main', // 使用 -m 模块方式运行
// ============================================
// 工作目录配置