Running setup code after boot

I’d like to run some caching code for my acts_as_ferret model after
booting but before starting to receive requests. I tried sticking it
into config/environments/production.rb but at that point it still
doesn’t have a logger and plugins are not included yet.

Anyone have any ideas on how do to this?

Thanks,

Pedro.

On 7/31/06, Pedro Côrte-Real [email protected] wrote:

I’d like to run some caching code for my acts_as_ferret model after
booting but before starting to receive requests. I tried sticking it
into config/environments/production.rb but at that point it still
doesn’t have a logger and plugins are not included yet.

Anyone have any ideas on how do to this?

Seems like sticking it in the end of config/environment.rb works. I
guess by then the config is advanced enough that everything works.

Pedro.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs