Files
gold_monitor/deploy/ecosystem.config.cjs
T

25 lines
524 B
JavaScript

/**
* PM2 进程配置 — gold_monitor
* 端口默认 5800
*/
const path = require("path");
const root = path.resolve(__dirname, "..");
module.exports = {
apps: [
{
name: "gold_monitor",
cwd: root,
script: path.join(root, ".venv/bin/gunicorn"),
args: "wsgi:app --bind 0.0.0.0:5800 --workers 2 --threads 4 --timeout 120",
interpreter: "none",
autorestart: true,
max_restarts: 20,
min_uptime: "5s",
env: {
PYTHONUNBUFFERED: "1",
},
},
],
};