Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created December 7, 2010 01:44
Show Gist options
  • Save edavis10/731339 to your computer and use it in GitHub Desktop.
Save edavis10/731339 to your computer and use it in GitHub Desktop.
namespace :uploads do
desc "Symlink uploads to shared path"
task :symlink do
run "rm -Rv #{release_path}/public/wp-content/uploads/"
run "ln -nfs #{shared_path}/uploads #{release_path}/public/wp-content/uploads"
end
end
after "deploy:update_code", "uploads:symlink"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment