Skip to content

Commit

Permalink
Added mongo config stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
treeder committed Feb 28, 2012
1 parent 6950dfa commit a314e50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -8,9 +8,11 @@ To run in development:

To run on heroku:

- heroku addons:add iron_worker
- heroku addons:add iron_mq
- git push heroku master
heroku addons:add iron_worker
heroku addons:add iron_mq
heroku config:add MONGO_URI=YOUR MONGO URI
heroku config:add MONGO_DATABASE=DATABASE NAME
git push heroku master

Since there are several parties involved you will have to share your Iron.io project with another party or they will have
to share their Iron.io project with you. If someone else shares it with you, you will have to set the Heroku environment
Expand Down
4 changes: 2 additions & 2 deletions config.rb
Expand Up @@ -18,5 +18,5 @@ def load_config(f)
@config["iron"]["project_id"] ||= ENV['IRON_PROJECT_ID'] || ENV['IRON_WORKER_PROJECT_ID']

@config["mongo"] ||= {}
@config["mongo"]["uri"] ||= ENV['MONGODB_URI']
@config["mongo"]["database"] ||= ENV['MONGODB_DATABASE']
@config["mongo"]["uri"] ||= ENV['MONGO_URI']
@config["mongo"]["database"] ||= ENV['MONGO_DATABASE']

0 comments on commit a314e50

Please sign in to comment.