I guess they wanted the MongoHQ addon to "just work" with Mongoid in
addition to MongoMapper.


On Sep 27, 4:58 pm, Bradley <bradleyrobert...@gmail.com> 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 <christopher.m.ha...@gmail.com>
> 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 <abel.tam...@gmail.com> 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 <bradleyrobert...@gmail.com> 
> > > 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 <bradleyrobert...@gmail.com> 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 her...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > heroku+unsubscr...@googlegroups.com<heroku%2bunsubscr...@googlegroups.com>
> > > > .
> > > > 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to