Skip to content

Commit aadfba0

Browse files
committed
psh
1 parent bbcc26c commit aadfba0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/ProcessUtils.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
module.exports = {
44
injectModules: function() {
5-
if (process.env.pmx !== 'false') {
6-
const pmx = require('@pm2/io')
5+
// if (process.env.pmx !== 'false') {
6+
// const pmx = require('@pm2/io')
77

8-
let conf = {}
9-
const hasSpecificConfig = typeof process.env.io === 'string' || process.env.trace === 'true'
10-
// pmx is already init, no need to do it twice
11-
if (hasSpecificConfig === false) return
8+
// let conf = {}
9+
// const hasSpecificConfig = typeof process.env.io === 'string' || process.env.trace === 'true'
10+
// // pmx is already init, no need to do it twice
11+
// if (hasSpecificConfig === false) return
1212

13-
if (process.env.io) {
14-
const io = JSON.parse(process.env.io)
15-
conf = io.conf ? io.conf : conf
16-
}
17-
pmx.init(Object.assign({
18-
tracing: process.env.trace === 'true' || false
19-
}, conf))
20-
}
13+
// if (process.env.io) {
14+
// const io = JSON.parse(process.env.io)
15+
// conf = io.conf ? io.conf : conf
16+
// }
17+
// pmx.init(Object.assign({
18+
// tracing: process.env.trace === 'true' || false
19+
// }, conf))
20+
// }
2121
},
2222
isESModule(exec_path) {
2323
var fs = require('fs')

0 commit comments

Comments
 (0)