Maybe you’ve run into [out :: …] rm: cannot remove `/…/releases/20110221192810/tmp/restart.txt’: Permission denied
I did. The reason was because we were deploying with multiple users and when the tmp directory was being created it was not set to group writable.
Fortunately it is an easy fix, just add this into your cap deploy script:
after :deploy do run "chmod -R g+w #{release_path}/tmp" end
Very useful!
Thanks.
LikeLike