I am getting the following error when deployment fails:

** [deploy:update_code] rolling back executing "rm -rf /path/releases/
20101104105608; true"

servers: ["www.example.com"]
...

rm: cannot remove '/path/filename'
rm: cannot remove '/path/filename'
rm: cannot remove '/path/filename'

I assume it is because I have a specific 'deploy' user with sudo
access, which changes ownership of the project files to apache while
deploying code.

Is there any way I can run a task before 'rolling back' to change
permissions back to deploy user, so files will be wiped out as
expected.

I have thought that "before 'deploy:rollback'" would be the one,
but obviously it only runs when scripts runs deploy:rollback command

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to