Permalink
Browse files

Add mongolab url option

  • Loading branch information...
1 parent 2d3c869 commit 3f0c2a7509e7716278e6fee5e77e1d248988240f @micahbrich committed Aug 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/heroku/command/mongo.rb
@@ -63,7 +63,7 @@ def transfer(from, to)
def heroku_mongo_uri
config = heroku.config_vars(app)
- url = config['MONGO_URL'] || config['MONGOHQ_URL'] || "#{mongo-url}"
+ url = config['MONGO_URL'] || config['MONGOLAB_URI'] || config['MONGOHQ_URL'] || "#{mongo-url}"
error("Could not find the MONGO_URL for #{app}") if url.blank?
make_uri(url)
end

0 comments on commit 3f0c2a7

Please sign in to comment.