From 8692a1daf7b4b7dfb8a4d6ec3363ac0cc62203a8 Mon Sep 17 00:00:00 2001 From: Unitech Date: Tue, 10 Jul 2018 11:29:22 +0200 Subject: [PATCH] chore: new ascii logo + refactor pm2 plus command --- README.md | 14 +++++--------- bin/pm2 | 2 +- lib/API/PM2/PM2IO.js | 2 +- lib/API/PM2/motd | 23 +++++++++++++---------- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 593629029..f7c07a6e9 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,10 @@ $ pm2 update

+```bash +$ pm2 plus +``` + Once you scale you need to make sure that your application is running properly, without bugs, performance issues and without downtimes. That's why we created PM2 Plus. It's a set of advanced features for both hardening the PM2 Runtime and monitoring applications in production. @@ -227,15 +231,7 @@ With PM2 Plus you get: And much more like realtime logs, custom metrics, remote actions... -To start using PM2 Plus via CLI: - -```bash -$ pm2 register -``` - -Or go to the application and create an account: - -[To discover PM2 Plus Register Here](https://app.pm2.io/) +You can also create account via the app: [here](https://app.pm2.io/) ### PM2 Plus Features diff --git a/bin/pm2 b/bin/pm2 index e70b2b1dc..608da9318 100755 --- a/bin/pm2 +++ b/bin/pm2 @@ -562,7 +562,7 @@ commander.command('report') }); // -// Keymetrics CLI integratio +// PM2 I/O // commander.command('link [secret] [public] [name]') .alias('interact') diff --git a/lib/API/PM2/PM2IO.js b/lib/API/PM2/PM2IO.js index 090480713..9a6633e10 100644 --- a/lib/API/PM2/PM2IO.js +++ b/lib/API/PM2/PM2IO.js @@ -45,7 +45,6 @@ module.exports = function(CLI) { CLI.prototype.loginToKM = function() { var promptly = require('promptly') - printMotd(); return CLIAuthStrategy._retrieveTokens((err, tokens) => { if (err) { @@ -101,6 +100,7 @@ module.exports = function(CLI) { CLI.prototype.registerToKM = function() { var promptly = require('promptly'); + printMotd(); promptly.confirm(chalk.bold('Do you have a pm2.io account? (y/n)'), (err, answer) => { if (answer == true) { diff --git a/lib/API/PM2/motd b/lib/API/PM2/motd index 9d44fc761..091287164 100644 --- a/lib/API/PM2/motd +++ b/lib/API/PM2/motd @@ -1,13 +1,16 @@ - 88888888ba 88b d88 ad888888b, 88 ,ad8888ba, - 88 "8b 888b d888 d8" "88 88 d8"' `"8b - 88 ,8P 88`8b d8'88 a8P 88 d8' `8b - 88aaaaaa8P' 88 `8b d8' 88 ,d8P" 88 88 88 - 88""""""' 88 `8b d8' 88 a8P" 88 88 88 - 88 88 `8b d8' 88 a8P' 88 Y8, ,8P - 88 88 `888' 88 d8" 888 88 Y8a. .a8P - 88 88 `8' 88 88888888888 888 88 `"Y8888Y"' + ██████╗ ███╗ ███╗██████╗ ██╗ ██╗ ██████╗ + ██╔══██╗████╗ ████║╚════██╗ ██║ ██╔╝██╔═══██╗ + ██████╔╝██╔████╔██║ █████╔╝ ██║ ██╔╝ ██║ ██║ + ██╔═══╝ ██║╚██╔╝██║██╔═══╝ ██║ ██╔╝ ██║ ██║ + ██║ ██║ ╚═╝ ██║███████╗ ██║██╔╝ ╚██████╔╝ + ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝╚═╝ ╚═════╝ + + https://pm2.io/ - https://pm2.io/ + Harden your Node.js Production Environment - Add Control and Monitoring to Your Node.js Apps + - Real-time Monitoring Web Interface + - Pro Active Alerting System + - Production Profiling for Memory and CPU + - PM2 Runtime High Availability Fallback