module.exports = { apps: [ { name: "cod-api", script: "./index.js", // Path to your entry file env: { NODE_ENV: "development", }, env_production: { NODE_ENV: "production", }, // Logging configuration // error_file: "C:\IDETAMA\pm2-log\cod-api\cod-api-error.log", // out_file: "C:\IDETAMA\pm2-log\cod-api\cod-api-out.log", // log_file: "C:\IDETAMA\pm2-log\cod-api\cod-api-combined.log", // optional combined file error_file: "cod-api-error.log", out_file: "cod-api-out.log", log_file: "cod-api-combined.log", // optional combined file time: true, // adds timestamps to logs }, ], };