Ruby on Rails Wednesday, July 23, 2014

Hi.my problem is Mongo::ConnectionFailure: Failed to connect to a master node at 127.0.0.1:27017 when im pushing on heroku

im using mongomapper

defaults: &defaults host: 127.0.0.1 port: 27017 options: w: 1 pool_size: 1 slave_ok: false ssl: false

development: <<: *defaults database: devname

test: <<: *defaults database: testname w: 0

production: <<: *defaults

database: devname

MongoMapper.connection = Mongo::Connection.new('localhost', 27017)

MongoMapper.database = "appname-#{Rails.env}"

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/26631240-25d3-4c1a-a9a3-2b2dc56daa30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment