Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7088: shared_hosts_hate_fcgi.diff

File shared_hosts_hate_fcgi.diff, 0.8 kB (added by jaw6, 2 years ago)

The Patch

  • lib/capistrano/recipes/standard.rb

    old new  
    6262end 
    6363 
    6464desc <<-DESC 
     65Sets group permissions on checkout. Useful for team environments, bad on shared hosts. Override this task if you're on a shared host. 
     66DESC 
     67task :set_permissions 
     68  run "chmod -R g+w #{release_path}" 
     69end 
     70 
     71desc <<-DESC 
    6572Update all servers with the latest release of the source code. All this does 
    6673is do a checkout (as defined by the selected scm module). 
    6774DESC 
     
    7077 
    7178  source.checkout(self) 
    7279 
    73   run "chmod -R g+w #{release_path}" 
     80  set_permissions 
    7481 
    7582  run <<-CMD 
    7683    rm -rf #{release_path}/log #{release_path}/public/system &&