Created
May 11, 2009 18:19
-
-
Save AndrewO/110086 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :additional_shared_paths, ["public/page_attachments", "public/excel_page_attachments"] | |
namespace :deploy do | |
after "deploy:update_code", "deploy:link_additional_shared_paths" | |
desc "Link directories to shared paths if they're in the additional_shared_paths variable" | |
task :link_additional_shared_paths do | |
additional_shared_paths.each do |path| | |
run "ln -nfs #{shared_path}/#{path} #{release_path}/#{path}" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment