Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Don't try to make the deploy group-writable.
Browse files Browse the repository at this point in the history
The fast-remote-cache only really works when everyone who deploys,
deploys as the same user. This is because of the use of hard-links,
combined with the default deployment option in deploy:finalize_update
that tries to chmod the most recent release. Also, deploys go
significantly faster when you don't have to chmod an entire directory
tree. :)
  • Loading branch information
jamis committed Jun 10, 2008
1 parent 3617b49 commit 5df0fb4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions recipes/fast_remote_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@
end
end

desc <<-DESC
Make sure the cached-copy is group writable. This ensures that when used
in a team environment, multiple individuals may deploy using this
strategy.
DESC
task :make_writable, :except => { :no_release => true } do
cache = File.join(shared_path, fetch(:repository_cache, "cached-copy"))
sudo "chmod -R g+w #{cache}; true"
end

end

after "deploy:setup", "fast_remote_cache:setup"
before "deploy:update_code", "fast_remote_cache:make_writable"

0 comments on commit 5df0fb4

Please sign in to comment.