This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
dvrensk (author)
Wed Nov 05 05:25:40 -0800 2008
commit fc42bd22bb30253a8d6b82095572efea1d3c843b
tree ee0e582e15f8e6428dba8e713cce761e7a8f5ce8
parent f37cd5ec90bb08f1807d00f6b32f3d49917d50a7
tree ee0e582e15f8e6428dba8e713cce761e7a8f5ce8
parent f37cd5ec90bb08f1807d00f6b32f3d49917d50a7
README
AAFAutoRebuild
==============
AAFAutoRebuild is rails plugin, that automatically rebuilds your Ferret index if field definitions have changed.
Its main purpose is to reduce deploy time by only rebuilding parts of your index.
The plugin only works in conjunction with acts_as_ferret.
Setup & Usage
=============
To install the plugin (Rails >= 2.1):
./script/plugin install git://github.com/rubyphunk/aafautorebuild.git
If you are on older rails you can 'git clone' the repository.
After installing the plugin your new and shiny task
'rake ferret:index:auto_rebuild' should be available.
The plugin works out of the box without configuration, but if you want to use it in your deployment setup you should set
the APPLICATION_NAME constant in your environment.rb. This is necessary because AAFAutoRebuild keeps your acts_as_ferret
configuration state based on the directory your application is living in, unless APPLICATION_NAME is available. So if
your app is deployed to changing release directories the plugin will never be able to restore your last Ferret state.
Here is a sample Capistrano task:
=================================
desc "Auto rebuild ferret index"
task :rebuild, :roles => [:ferret] do
run "cd #{current_path}; rake RAILS_ENV=production ferret:index:auto_rebuild"
end
Copyright (c) 2008 Andreas Wolff (rubyphunk.com), released under the MIT license








