> I have a site with an uploads folder 'public/uploads' and whenever I > deploy previous uploads disappear. I figure it's one of two things svn > is deleting them (but it's supposed to leave files it doesn't know > about alone) or the uploads are getting left behind in the old > release. > > Any ideas on what could be going wrong? How can I set the folder to be > ignored or the files moved to the new release?
Your best bet is to create a symlink from 'public/uploads' to the 'shared' directory. That is... current/public/uploads -> shared/public/uploads Then modify the capistrano task to make sure that symlink is there after a deploy. Something like this: task :after_update_code, :roles => :app do run "ln -nfs '#{shared_path}/public/uploads' '#{release_path}/public/uploads'" end -philip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---