// PM2 process config — start with: pm2 start ecosystem.config.js
module.exports = {
  apps: [{
    name: "wasiyat",
    script: "./app/server.js",
    instances: 2,
    exec_mode: "cluster",
    env: {
      NODE_ENV: "production",
      PORT: 3000,
      HOSTNAME: "0.0.0.0",
    },
    max_memory_restart: "400M",
    error_file: "./logs/err.log",
    out_file: "./logs/out.log",
    restart_delay: 3000,
  }],
};
