Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

get heroku mongo url from MONGOHQ_URL too

  • Loading branch information...
commit edbbf13d4b5339959f1d6b9792b0fabe5eb1904d 1 parent eb9861f
@pedro pedro authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/heroku/command/mongo.rb
View
3  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.
Something went wrong with that request. Please try again.