On Mon, Jan 4, 2010 at 2:59 PM, Benjamin Podszun
<[email protected]> wrote:
> On Mon, Jan 4, 2010 at 10:22 AM, Marius Mårnes Mathiesen
> Again, I'm still ignorant, but ruby gems is afaik the "CPAN of ruby",
> right? Is this connected to rails? That's the only "require" that was
> in the file, other than "daemons". Which script should include the
> environment configuration or the rails stuff? If you give me a hint, a
> starting point, I might be able to track this further down. For now
> I'm clueless.

Sorry for replying to myself, but I understand now that the poller
script loads/runs vendor/plugins/activemessaging/poller.rb, which in
turn includes

# Load Rails
RAILS_ROOT=File.expand_path(File.join(File.dirname(__FILE__), '..','..','..'))
load File.join(RAILS_ROOT, 'config', 'environment.rb')

So that _looks_ good, but again: It seems that this doesn't use the
settings defined in environments/production.rb for me. I can see that
boot.rb includes environment.rb as well.

Possible ideas (can you shoot them down?):
- boot.rb does something to the ActionMailer class (creating an
instance that reads the configuration, whatever)
- boot.rb predefines something that leads to the parsing of
environments/production.rb

Thanks for the help and regards,
Ben

--

You received this message because you are subscribed to the Google Groups 
"Gitorious" 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/gitorious?hl=en.


Reply via email to