I'd watch out for the "rm -rf #{release_path}/public/images/users" line. I think that would remove all your images.
On Nov 1, 12:36 pm, Freddy Andersen <[EMAIL PROTECTED]> wrote: > That is how Capistrano is supposed to work. You checkout new code from > your repo and the current link is replaced with the latest checkout in > releases/datestamp. > > Just like Tim said when you have content that needs to be shared > between releases you need to put that somewhere else LIKE the shared > directory. You should do this with a task and a after filter in your > deploy.rb file: > > after "deploy:update_code", "deploy:symlink" > > task :symlink, :roles => :app do > run <<-CMD > rm -rf #{release_path}/public/images/users && > ln -nfs #{shared_path}/users #{release_path}/public/images/users > && > CMD > end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@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-talk?hl=en -~----------~----~----~----~------~----~------~--~---