lib/o2h/recipes/deploy.rb in o2h-0.1.0 vs lib/o2h/recipes/deploy.rb in o2h-0.1.1
- old
+ new
@@ -12,12 +12,13 @@
set(:current_revision) { capture("cd #{current_path}; git rev-parse --short HEAD").strip }
set(:latest_revision) { capture("cd #{current_path}; git rev-parse --short HEAD").strip }
set(:previous_revision) { capture("cd #{current_path}; git rev-parse --short HEAD@{1}").strip }
-#after :'deploy:update_code', :'deploy:set_permissions', :roles => :web
+after 'deploy:update_code', 'deploy:set_permissions', :roles => :web
namespace :deploy do
+
task :set_permissions do
# Change the owner and group of everything under the
# deployment directory to webadmin and apache
try_sudo "chgrp -R #{group} #{deploy_to}"
end