I'm not sure what's going on, but Heroku doesn't do any magic like that. When you add the mongohq addon, the only url that is set is the MONGOHQ_URL. I just tested it on one of my apps, added mongohq, and there is nothing set for MONGOID_*. Perhaps that's a feature that the mongoid gem itself provides?
Oren On Mon, Sep 27, 2010 at 5:43 PM, Chris Hanks <[email protected]> wrote: > I guess they wanted the MongoHQ addon to "just work" with Mongoid in > addition to MongoMapper. > > > On Sep 27, 4:58 pm, Bradley <[email protected]> wrote: >> ya you're right, those env vars exist. >> >> i wonder why the docs on this are so sparse, and how the author of >> this template found this out. I haven't been able to locate anything >> that gives an indication that this is happening. >> >> On Sep 27, 11:44 am, Chris Hanks <[email protected]> >> wrote: >> >> >> >> > Heroku might be breaking up the ENV['MONGOHQ_URL'] into those >> > components for you. Try "heroku console" from your command line and >> > then "ENV['MONGOID_HOST']" to see if it's present. >> >> > On Sep 27, 6:51 am, Abel Tamayo <[email protected]> wrote: >> >> > > It seems MongoMapper is more popular around here. At least it's the >> > > solution >> > > I'm using and works flawlessly with Heroku. >> >> > > On Mon, Sep 27, 2010 at 2:33 PM, Bradley <[email protected]> >> > > wrote: >> > > > no one has a comment on this? I thought it'd be a fairly straight >> > > > forward answer. >> >> > > > On Sep 22, 7:11 pm, Bradley <[email protected]> wrote: >> > > > > I just used a template for a new rails app that sets up everything >> > > > > for >> > > > > use with Mongoid. The mongoid.yml file looks like this: >> >> > > > > production: >> > > > > host: <%= ENV['MONGOID_HOST'] %> >> > > > > port: <%= ENV['MONGOID_PORT'] %> >> > > > > username: <%= ENV['MONGOID_USERNAME'] %> >> > > > > password: <%= ENV['MONGOID_PASSWORD'] %> >> > > > > database: <%= ENV['MONGOID_DATABASE'] %> >> >> > > > > I added the MONGOHQ_URL config var to my app (with the string given >> > > > > from mongohq), deployed and it worked! My question is... HOW? >> >> > > > > I don't get how adding that single URL has all of a sudden given me >> > > > > these 5 environment variables. I searched through the heroku docs on >> > > > > mongo and they pretty sparse. Nowhere does it mention that I might >> > > > > use these particular env vars. So how does this happen? >> >> > > > -- >> > > > You received this message because you are subscribed to the Google >> > > > Groups >> > > > "Heroku" group. >> > > > To post to this group, send email to [email protected]. >> > > > To unsubscribe from this group, send email to >> > > > [email protected]<heroku%[email protected]> >> > > > . >> > > > For more options, visit this group at >> > > >http://groups.google.com/group/heroku?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
