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 -~----------~----~----~----~------~----~------~--~---
