First checkin

This commit is contained in:
Matt Barringer 2013-01-07 09:04:09 +01:00
parent f207e2c8b7
commit 90b30db9e8
260 changed files with 37349 additions and 0 deletions

16
config/deploy.rb Normal file
View file

@ -0,0 +1,16 @@
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"