We use capistrano with acts_as_ferret as well. Our recipes are here:
http://svn.highgroove.com:8080/deployment/trunk/apache2_2_mongrel_deploy.rb there's even a task in there for rebuilding the index, say after you've setup the symlink to a shared dir. enjoy, -- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: www.highgroove.com slingshot hosting: www.slingshothosting.com On 11/11/06, Ross Riley <[EMAIL PROTECTED]> wrote: > > Hello. > You need to copy your indexes into shared, then use the after_symlink > hook to create symlinks from where the folders should be, to where > they are. > for example just run: ln -s /home/site/shared/index /home/site/current/index > > > > > On 11/11/06, Nickolay Kolev <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > I have just decided to give Capistrano a try for deploying Rails apps > > after almost 2 years of rsync and shell scripts. > > > > Some issues have cropped up, and I could not find solutions in the > > manual. > > > > For the searching need of most apps I support, I use acts_as_ferret. > > This creates an index structure of the database tables in a directory > > called "index" in RAILS_ROOT. How can I move this to a location like > > "shared" so that it is not deployed along with the rest of the code? > > (Naturally the index directories on my local machine are NOT in svn.) > > > > The same goes for directories under RAILS_ROOT/public which are > > destined for uploads (some through the excellent file_column plugin, > > others through a WYSIWYG web editor like FCKEditor). > > > > Is there a way to specify that such directories should live in > > shared/ and be automatically symlinked? > > > > I use this recipe (http://blog.wolfman.com/articles/2006/05/26/ > > capistrano-local-deploy-recipe) for getting the code out of my local > > repository and to the server. Is there any other way? Not that It > > doesn't work, I am just curious. :-) > > > > Many thanks in advance, > > Nickolay > > > > > > > > > > -- > Ross Riley > www.sorrylies.com > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
