Skip to content

Commit

Permalink
fix: remove install of modules on pm2 plus command
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Aug 28, 2018
1 parent cc27de4 commit 6a8bb26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/pm2
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,10 @@ function connect(type, sec, pub, name, _opts) {

if (opts.public && opts.secret)
return pm2.linkManagement(opts.secret, opts.public, opts.name, opts, function(err, dt) {
pm2.minimumSetup(opts, function() {
//pm2.minimumSetup(opts, function() {
console.log(cst.PM2_IO_MSG + 'Remote dashboard: https://app.pm2.io/#/r/' + dt.public_key);
pm2.speedList()
})
//})
})

pm2.register(opts);
Expand Down
4 changes: 2 additions & 2 deletions lib/API/pm2-plus/PM2IO.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module.exports = function(CLI) {
else if (bucket._payment.offer_type.indexOf('pro') > -1)
opts.type = 'plus'

self.minimumSetup(opts, () => {
//self.minimumSetup(opts, () => {
console.log()
console.log(chalk.green('[+] PM2 Plus has been successfully enabled!'))

Expand All @@ -116,7 +116,7 @@ module.exports = function(CLI) {
setTimeout(function() {
process.exit(cst.SUCCESS_EXIT);
}, 200)
})
//})
}

promptly.confirm(chalk.bold('Do you have a pm2.io account? (y/n)'), (err, answer) => {
Expand Down
3 changes: 1 addition & 2 deletions lib/API/pm2-plus/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ module.exports = function(CLI) {
var modules = []

if (opts.type === 'enterprise' || opts.type === 'plus') {
//modules = ['pm2-logrotate', 'pm2-server-monit', 'event-loop-inspector']
modules = ['event-loop-inspector']
modules = ['pm2-logrotate', 'pm2-server-monit']
if (semver.satisfies(process.version, '< 8.0.0')) {
modules.push('v8-profiler-node8')
}
Expand Down

0 comments on commit 6a8bb26

Please sign in to comment.