Update ecosystem.config.js
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
apps: [
|
apps: [
|
||||||
{
|
{
|
||||||
name: "bengkel-api",
|
name: "call-of-duty-api",
|
||||||
script: "./index.js", // Path to your entry file
|
script: "./index.js", // Path to your entry file
|
||||||
env: {
|
env: {
|
||||||
NODE_ENV: "development",
|
NODE_ENV: "development",
|
||||||
@@ -9,6 +9,11 @@ module.exports = {
|
|||||||
env_production: {
|
env_production: {
|
||||||
NODE_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
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user