conf: pm2 watch

master
Lei OT 2 years ago
parent e285767507
commit fb5c899eb0

@ -1,7 +1,7 @@
const fs = require('fs'); const fs = require('fs');
var date = new Date(); 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 err_log = "./pm2/logs/err.log";
var out_log = "./pm2/logs/out.log"; var out_log = "./pm2/logs/out.log";
@ -33,8 +33,8 @@ module.exports = {
merge_logs: true, merge_logs: true,
max_restarts: 20, max_restarts: 20,
error_file : err_log, error_file : err_log,
out_file : out_log out_file : out_log,
// instances: 1, // instances: 1,
// watch: '.' watch: '.'
}], }],
}; };

Loading…
Cancel
Save