Skip to content

Commit

Permalink
plus: disable new bucket creation
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud committed Mar 6, 2019
1 parent 9b042ac commit 59c4b20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/API/pm2-plus/PM2IO.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ module.exports = class PM2ioHandler {
static createBucket (cb) {
console.log(`${cst.PM2_IO_MSG} It seems that you don't have any bucket to monitor your app currently.`)
console.log(`${cst.PM2_IO_MSG} Note: A bucket is like a organization in PM2 Plus where you connect multiples servers to it.`)
// currently we redirect on the UI
console.log(`${cst.PM2_IO_MSG} We have disabled new bucket creation via the cli for now. You should go to https://app.pm2.io to continue`)
return process.exit(0)

console.log(`${cst.PM2_IO_MSG} By default we allow you to trial PM2 Plus for 14 days without any credit card.`)
// do not create a bucket by default, we need their authorization
promptly.confirm(`${cst.PM2_IO_MSG} Do you want to create a new bucket and launch the trial ? (y/n)`, (err, value) => {
Expand Down

0 comments on commit 59c4b20

Please sign in to comment.