I have a problem with capistrano in that when update_code or symlink fails, I need to change permissions for some directories in the release path (or develop a way to use sudo rollback).
I tried before "deploy: rollback", task and before "deploy: rollback: code", but none of them seem to run update_code. Is this internal to the update_code task?
I assume another option is to make update_code -> rm -rf [releases] run as sudo.
source share