Permalink
Browse files

get heroku mongo url from MONGOHQ_URL too

  • Loading branch information...
1 parent eb9861f commit edbbf13d4b5339959f1d6b9792b0fabe5eb1904d @pedro pedro committed Mar 26, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/heroku/command/mongo.rb
@@ -39,7 +39,8 @@ def transfer(from, to)
end
def heroku_mongo_uri
- url = heroku.config_vars(app)['MONGO_URL']
+ config = heroku.config_vars(app)
+ url = config['MONGO_URL'] || config['MONGOHQ_URL']
error("Could not find the MONGO_URL for #{app}") unless url
make_uri(url)
end

0 comments on commit edbbf13

Please sign in to comment.