module.exports = {
  apps: [
    {
      name: "super-emas-be",
      script: "dist/src/main.js",

      instances: 2,            // change based on CPU later
      exec_mode: "cluster",

      watch: false,
      autorestart: true,
      max_memory_restart: "500M",

      output: "./logs/out.log",
      error: "./logs/error.log",
      log_date_format: "YYYY-MM-DD HH:mm:ss",
      merge_logs: true,

    }
  ]
};
