Skip to content

Instantly share code, notes, and snippets.

@victorcreed
Last active December 22, 2015 05:18
Show Gist options
  • Save victorcreed/6422601 to your computer and use it in GitHub Desktop.
Save victorcreed/6422601 to your computer and use it in GitHub Desktop.
it's was the monkey patch for shared uploads in capistrano. it will copy all the content from old uploads
1.9.1 :001 > Dir.glob("/root/projects/tellum/releases/**/public/uploads/user/photo").each do |p|
1.9.1 :002 > FileUtils.cp_r Dir["#{p}/*"], "/root/projects/tellum/shared/uploads/user/photo" rescue puts p
1.9.1 :003?> end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment