first commit
This commit is contained in:
@@ -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,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user