Ruby on Rails
Thursday, July 24, 2014
On Wednesday, July 23, 2014 6:05:41 PM UTC+1, xstaz wrote:
Hi.my problem is Mongo::ConnectionFailure: Failed to connect to a master node at 127.0.0.1:27017 when im pushing on heroku
Mongo isn't running on your heroku instance. The way heroku works you need to use an addon such as mongohq.
Fred
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/42104ddc-ebfb-464e-9c05-3902300cff68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment