Files
osem/config/deploy.rb
Matt Barringer 90b30db9e8 First checkin
2013-01-07 09:04:09 +01:00

17 lines
445 B
Ruby

namespace :paperclip do
desc "Create a storage folder for Paperclip attachment in shared path"
task :create_storage do
run "mkdir -p #{shared_path}/storage"
end
desc "Link the Paperclip storage folder into the current release"
task :link_storage do
run "ln -nfs #{shared_path}/storage #{release_path}/storage"
end
end
before "deploy:setup", 'paperclip:create_storage'
after "deploy:update_code", "paperclip:link_storage"