diff --git a/README.md b/README.md index f3a85fe..604fd21 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config.rb b/config.rb index 2fbbdd6..a7af2f8 100644 --- a/config.rb +++ b/config.rb @@ -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']