29 lines
734 B
JavaScript
29 lines
734 B
JavaScript
/**
|
|
* 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: 21450,
|
|
},
|
|
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,
|
|
},
|
|
],
|
|
};
|