David Heinemeier Hansson wrote:
>> True these where all hackish in a certain way: I've loaded the classes
>> before forking, by setting a in a central model class before any db calls
>> are made. Also the RAILS_ROOT will be useless after you've chdir()-ed to
>> root.
> 
> Verdammt. Is there no way to make a daemon without doing all this
> evil? And if not, we should create something like ActiveDaemon that'll
> set it all up for someone in a predictable way.

Cant we just reset RAILS_ROOT to be an absolute path? This way paths will
be still valid after chdir(). Bit late for me here for such experiments
but will try it tomorrow.

Zsombor
-- 
Company  - http://primalgrasp.com
Thoughts - http://deezsombor.blogspot.com
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to