Skip to content

Commit

Permalink
fix: #3877 #3831
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Aug 23, 2018
1 parent c505dcc commit 16f4f2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lib/API/pm2-plus/PM2IO.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ module.exports = function(CLI) {

console.log(cst.PM2_IO_MSG + 'Access to the remote dashboard: https://app.pm2.io/#/r/' + bucket.public_id);

self.speedList()
setTimeout(function() {
console.log(chalk.bold.green('[+] Exiting now.'))
process.exit(cst.SUCCESS_EXIT);
}, 200)
})
Expand Down
4 changes: 2 additions & 2 deletions lib/API/pm2-plus/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function(CLI) {
};

CLI.prototype.clearSetup = function (opts, cb) {
const modules = ['pm2-logrotate', 'pm2-server-monit', 'event-loop-inspector']
const modules = ['event-loop-inspector']
this.gl_is_km_linked = false

if (semver.satisfies(process.version, '< 10.0.0')) {
Expand Down Expand Up @@ -92,7 +92,7 @@ module.exports = function(CLI) {

processesAreAlreadyMonitored(self, (already_monitored) => {
if (already_monitored) {
console.log(cst.PM2_IO_MSG + `PM2 ${opts.type} bundle already installed`);
console.log(cst.PM2_IO_MSG + `PM2 ${opts.type || ''} bundle already installed`);
return cb()
}

Expand Down
2 changes: 1 addition & 1 deletion lib/API/pm2-plus/process-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(CLI) {
try {
fs.statSync(this._conf.INTERACTION_CONF);
} catch(e) {
return this.registerToKM();
return this.register({});
}
}

Expand Down

0 comments on commit 16f4f2b

Please sign in to comment.