diff --git a/ecosystem.config.js b/ecosystem.config.js index 74fb40a..68c3e6c 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,7 +1,7 @@ const fs = require('fs'); var date = new Date(); -var dat= date.getDate()+"-"+date.getMonth()+"-"+date.getFullYear(); +var dat= date.getDate()+"-"+(date.getMonth()+1)+"-"+date.getFullYear(); var err_log = "./pm2/logs/err.log"; var out_log = "./pm2/logs/out.log"; @@ -33,8 +33,8 @@ module.exports = { merge_logs: true, max_restarts: 20, error_file : err_log, - out_file : out_log + out_file : out_log, // instances: 1, - // watch: '.' + watch: '.' }], };