updated deployment section

This commit is contained in:
Sahat Yalkabov
2014-10-16 22:39:57 -07:00
parent 59e38de57d
commit 1f933ed336

View File

@ -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
<img src="http://blog.exadel.com/wp-content/uploads/2013/10/heroku-Logo-1.jpg" width="200">
- 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
---
<img src="http://i.imgur.com/7KnCa5a.png" width="200">
- Open [mongolab.com](https://mongolab.com) website
- Click the yellow **Sign up** button