In my project, the /index directory, used by ferret, is not in the svn
repository, for obvious reasons.
Every time I deploy, /index is gone, and the first user to run a search
on the new deployment has a very… long… wait… ahead of them while
the app re-indexes every searchable object in the db.
- migrate the index directory over from the previous deployment.
- somehow, get ferret to reindex during deployment:
- either by some magic method I don’t know about, calling
“/browse/all” on my app, or some such.
What I want to know is… How can I solve this problem with Capistrano.
(Surely it’s been dealt with dozens or hundreds of times before.)