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.

Reply via email to