mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Refactor the permissions tweaking in update_code to a separate task so that people on shared hosts can override it as necessary (closes #7088)
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@5999 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
253cb3ebbc
commit
9f0bc15703
2 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Refactor the permissions tweaking in update_code to a separate task so that people on shared hosts can override it as necessary [jaw6]
|
||||
|
||||
* Set umask during the setup task, so that intermediate directories are created with the proper permissions [NeilW]
|
||||
|
||||
* Removed -c/--caprc switch, since the new load order renders it meaningless (just use -f now) [Mike Bailey]
|
||||
|
|
|
@ -62,6 +62,14 @@ task :enable_web, :roles => :web do
|
|||
delete "#{shared_path}/system/maintenance.html"
|
||||
end
|
||||
|
||||
desc <<-DESC
|
||||
Sets group permissions on checkout. Useful for team environments, bad on
|
||||
shared hosts. Override this task if you're on a shared host.
|
||||
DESC
|
||||
task :set_permissions
|
||||
run "chmod -R g+w #{release_path}"
|
||||
end
|
||||
|
||||
desc <<-DESC
|
||||
Update all servers with the latest release of the source code. All this does
|
||||
is do a checkout (as defined by the selected scm module).
|
||||
|
@ -71,7 +79,7 @@ task :update_code, :except => { :no_release => true } do
|
|||
|
||||
source.checkout(self)
|
||||
|
||||
run "chmod -R g+w #{release_path}"
|
||||
set_permissions
|
||||
|
||||
run <<-CMD
|
||||
rm -rf #{release_path}/log #{release_path}/public/system &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue