Files
cloud-mcp/ecosystem.config.js

27 lines
585 B
JavaScript

// PM2 ecosystem file for cloud-mcp
module.exports = {
apps: [
{
name: "cloud-mcp",
script: "bun",
args: "run src/index.ts",
cwd: "/opt/cloud-mcp",
instances: 1,
exec_mode: "fork",
watch: false,
max_memory_restart: "500M",
env: {
NODE_ENV: "production",
},
error_file: "./logs/cloud-mcp-error.log",
out_file: "./logs/cloud-mcp-out.log",
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
merge_logs: true,
autorestart: true,
max_restarts: 10,
min_uptime: "10s",
},
],
};