module.exports = { apps: [ { name: "gami-op", script: "./node_modules/.bin/next", args: "start -H 0.0.0.0", cwd: "./", instances: "max", exec_mode: "cluster", watch: false, max_memory_restart: "500M", env: { NODE_ENV: "production", PORT: 3002, }, env_development: { NODE_ENV: "development", PORT: 3002, }, env_production: { NODE_ENV: "production", PORT: 3002, }, error_file: "./logs/err.log", out_file: "./logs/out.log", log_date_format: "YYYY-MM-DD HH:mm:ss Z", merge_logs: true, autorestart: true, restart_delay: 4000, }, ], };