mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
switchfeat: do not activate pm2-sysmonit by default - restore node 10.x
This commit is contained in:
parent
9768a7f254
commit
e8651f1dcd
@ -1,9 +1,9 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "16"
|
||||
- "15"
|
||||
- "14"
|
||||
- "12"
|
||||
- "10"
|
||||
git:
|
||||
depth: 2
|
||||
os:
|
||||
|
||||
@ -35,9 +35,11 @@ module.exports = function(CLI) {
|
||||
* Install pm2-sysmonit
|
||||
*/
|
||||
CLI.prototype.launchSysMonitoring = function(cb) {
|
||||
// if pm2 set pm2:sysmonit to false, skip pm2-sysmonit autostart
|
||||
if (this.pm2_configuration == 'false' || process.env.NODE_ENV == 'test'
|
||||
|| process.env.TRAVIS || global.it === 'function' || cst.IS_WINDOWS === true)
|
||||
|
||||
if ((this.pm2_configuration && this.pm2_configuration.sysmonit != 'true') ||
|
||||
process.env.TRAVIS ||
|
||||
global.it === 'function' ||
|
||||
cst.IS_WINDOWS === true)
|
||||
return cb ? cb(null) : null
|
||||
|
||||
var filepath
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"preferGlobal": true,
|
||||
"version": "5.0.4",
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"directories": {
|
||||
"bin": "./bin",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user