Saturday, March 27, 2010

rails ferret in production

I've had a few problems as i've moved from dev to production. My task has been complicated by not always maintaining my migrations. However the problem I've had recently has been with ferret not working.

When I've started './console/script procution' and try and rebuild indexes manually I get:

Mymodel1.rebuild_index()
=> false


It turns out that the problem was that ferret has an expectation that in production, there will be a ferret server running. This is asserted in the file:

./config/ferret_server.yml

I commented out the production server and it works.

No comments: