Skip to content

Commit

Permalink
Checks for a MONGOLAB_URI in secrets.js to integrate with heroku addon
Browse files Browse the repository at this point in the history
Edits documentation to describe 1 step heroku deployment
removes osx from toolbelt link per PR comment
  • Loading branch information
rewonc committed Oct 16, 2014
1 parent 5ff56bd commit c5def7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions README.md
Expand Up @@ -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
<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
- 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
<img src="http://i.imgur.com/7KnCa5a.png" width="200">
- Open [mongolab.com](https://mongolab.com) website
- Click the yellow **Sign up** button
Expand All @@ -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).
<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/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!
<img src="http://www.opencloudconf.com/images/openshift_logo.png" width="200">
- First, install this Ruby gem: `sudo gem install rhc` :gem:
Expand Down
2 changes: 1 addition & 1 deletion config/secrets.js
Expand Up @@ -18,7 +18,7 @@

module.exports = {

db: process.env.MONGODB|| 'mongodb://localhost:27017/test',
db: process.env.MONGOLAB_URI || process.env.MONGODB || 'mongodb://localhost:27017/test',

sessionSecret: process.env.SESSION_SECRET || 'Your Session Secret goes here',

Expand Down

0 comments on commit c5def7b

Please sign in to comment.