Update ecosystem.config.js

This commit is contained in:
2025-11-04 05:46:55 +00:00
parent 95e0c90a16
commit d87fc07a8e

View File

@@ -1,7 +1,7 @@
module.exports = {
apps: [
{
name: "bengkel-api",
name: "call-of-duty-api",
script: "./index.js", // Path to your entry file
env: {
NODE_ENV: "development",
@@ -9,6 +9,11 @@ module.exports = {
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
time: true, // adds timestamps to logs
},
],
};