From fb5c899eb039284c8a9b0ab3820f0094dfe7c8c2 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 30 Aug 2023 13:47:49 +0800 Subject: [PATCH] conf: pm2 watch --- ecosystem.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: '.' }], };