first commit

This commit is contained in:
dekun
2026-05-22 13:06:42 +08:00
commit af5c249cf8
27 changed files with 1741 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
/**
* PM2 配置 — 部署路径默认 /opt/Binance_Altcoin_Monitor
* 启动: pm2 start ecosystem.config.cjs
*/
module.exports = {
apps: [
{
name: "binance-altcoin-monitor",
cwd: "/opt/Binance_Altcoin_Monitor",
script: "run.py",
interpreter: "python3",
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: "512M",
env: {
NODE_ENV: "production",
TZ: "Asia/Shanghai",
HOST: "0.0.0.0",
PORT: 8000,
},
error_file: "/opt/Binance_Altcoin_Monitor/logs/pm2-error.log",
out_file: "/opt/Binance_Altcoin_Monitor/logs/pm2-out.log",
merge_logs: true,
time: true,
},
],
};