Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix mongo connection info on Heroku

  • Loading branch information...
commit 1b4a5a50333544d86a0069e976d85b823eddda9f 1 parent d43644e
Joshua Flanagan authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  app.rb
3  app.rb
@@ -17,8 +17,9 @@ class User
17 17 end
18 18
19 19 configure :production do
  20 + mongo_url = ENV["MONGOHQ_URL"]
20 21 uri = URI.parse(mongo_url)
21   - MongoMapper.connection = Mongo::Connection.from_uri(ENV["MONGOHQ_URL"])
  22 + MongoMapper.connection = Mongo::Connection.from_uri(mongo_url)
22 23 MongoMapper.database = uri.path.gsub(/^\//,'')
23 24 end
24 25

0 comments on commit 1b4a5a5

Please sign in to comment.
Something went wrong with that request. Please try again.