Stuart Hungerford
2006-Dec-20 06:55 UTC
[Ferret-talk] How to debug acts_as_ferret on production system?...
Hi, I''ve been happily using acts_as_ferret on a Rails site in development mode, but deploying to a production system causes some errors I haven''t been able to resolve. My production deployment setup is Apache/mongrel and I''m sharing the index directory across each deployment version by linking {current_path}/index to {shared_path}/index in the Capistrano setup. Edge Rails is svn externals''d into the releases. Visiting the new production system for the first time leaves this error in the production.log: LoadError (Expected .../current/config/../app/models/page.rb to define Page): /vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:246:in `load_missing_constant'' Now that model class Page, is just: class Page < ActiveRecord::Base acts_as_ferret end Next I set the debugging level to debug and re-tried the page which gave the same error. Okay, maybe the indexes aren''t built, so I did a: ruby script/console production Loading production environment. >> Page.rebuild_index => false The logfile now shows a bunch of "Adding Field" messages and a final: Created Ferret index in: .../current/script/../config/../config/../index/production/page The page still fails with the same message in the production.log. Can anyone suggest a better way to debug these production problems? TIA, Stu -- Stuart Hungerford ANUSF Data Intensive Projects
Reasonably Related Threads
- acts as ferret, make index in /tmp then copy back to avoid NFS slowness?
- Typo and acts_as_ferret rebuild_index errror
- Using AAF with ActiveRecord outside of Rails?...
- NameError uninitialized constant Ferret::Index::FieldInfos
- in acts_as_ferret, excluding records from rebuild_index