From 59e38de57d1894ecf2e5d976f8bc9897a2cd8cc8 Mon Sep 17 00:00:00 2001 From: rewonc Date: Thu, 16 Oct 2014 09:14:27 -0700 Subject: [PATCH 1/2] Checks for a MONGOLAB_URI in secrets.js to integrate with heroku addon Edits documentation to describe 1 step heroku deployment removes osx from toolbelt link per PR comment --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 22a2f282592..b4bdc05dcb0 100644 --- a/README.md +++ b/README.md @@ -1073,10 +1073,18 @@ Deployment ---------- Once you are ready to deploy your app, you will need to create an account with a cloud platform to host it. These are not -the only choices, but they are my top picks. Create an account with **MongoLab** and then pick one of the 4 providers -below. Once again, there are plenty of other choices and you are not limited to just the ones listed below. From my -experience, **Heroku** is the easiest to get started with, it will automatically restart your node.js process when it crashes, custom domain support on free accounts and zero-downtime deployments. +the only choices, but they are my top picks. From my experience, **Heroku** is the easiest to get started with, it will automatically restart your node.js process when it crashes, custom domain support on free accounts and zero-downtime deployments. Additionally, you can create an account with **MongoLab** and then pick one of the 3 providers +below. Once again, there are plenty of other choices and you are not limited to just the ones listed below. +###One step deployment with Heroku + +- Download and install [Heroku Toolbelt](https://toolbelt.heroku.com/) +- In terminal, run `heroku login` and enter your Heroku credentials +- From *your app* directory run `heroku create` +- Run `heroku addons:add mongolab` to set up Mongo and configure your environment variables +- Lastly, do `git push heroku master`. Done! + +###Deploying with MongoLab and another cloud provider - Open [mongolab.com](https://mongolab.com) website - Click the yellow **Sign up** button @@ -1097,11 +1105,6 @@ experience, **Heroku** is the easiest to get started with, it will automatically > **:exclamation:Note:** As an alternative to MongoLab, there is also [MongoHQ](http://www.mongohq.com/home). - -- Download and install [Heroku Toolbelt](https://toolbelt.heroku.com/osx) -- In terminal, run `heroku login` and enter your Heroku credentials -- From *your app* directory run `heroku create`, followed by `git push heroku master` -- Done! - First, install this Ruby gem: `sudo gem install rhc` :gem: From 1f933ed336aef3513bcc80b70e85bedd99bcc488 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Thu, 16 Oct 2014 22:39:57 -0700 Subject: [PATCH 2/2] updated deployment section --- README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b4bdc05dcb0..0ddf8ac3c65 100644 --- a/README.md +++ b/README.md @@ -1072,11 +1072,17 @@ User.aggregate({ $group: { _id: null, total: { $sum: '$votes' } } }, function(er Deployment ---------- -Once you are ready to deploy your app, you will need to create an account with a cloud platform to host it. These are not -the only choices, but they are my top picks. From my experience, **Heroku** is the easiest to get started with, it will automatically restart your node.js process when it crashes, custom domain support on free accounts and zero-downtime deployments. Additionally, you can create an account with **MongoLab** and then pick one of the 3 providers -below. Once again, there are plenty of other choices and you are not limited to just the ones listed below. +Once you are ready to deploy your app, you will need to create an account with +a cloud platform to host it. These are not the only choices, but they are my top +picks. From my experience, **Heroku** is the easiest to get started with, it will +automatically restart your Node.js process when it crashes, zero-downtime +deployments and custom domain support on free accounts. Additionally, you can +create an account with **MongoLab** and then pick one of the 3 providers below. +Again, there are plenty of other choices and you are not limited to just the ones +listed below. + +### 1-Step Deployment with Heroku -###One step deployment with Heroku - Download and install [Heroku Toolbelt](https://toolbelt.heroku.com/) - In terminal, run `heroku login` and enter your Heroku credentials @@ -1084,7 +1090,8 @@ below. Once again, there are plenty of other choices and you are not limited to - Run `heroku addons:add mongolab` to set up Mongo and configure your environment variables - Lastly, do `git push heroku master`. Done! -###Deploying with MongoLab and another cloud provider +--- + - Open [mongolab.com](https://mongolab.com) website - Click the yellow **Sign up** button