feat: scaffold gold_monitor web hub, API, PM2 deploy and docs
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* 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",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user