demental/wp-deploy-flow — pull request #8 by samsamai (2013-08-31 11:26:39+00:00)
Title: Make rsync in pusher do 755 permissions for Dirs, and 644 for Files

I am running a vagrant box and when I deployed to the production server I was getting 500 errors. This was because the vagrant box has group write permissions set for the files and wp-deploy-flow's rsync command was preserving the permissions and copying to the production server where the server refused the serve the files out as it saw a group write permission as a security risk.

So I changed the rsync command in the pusher so that it sets 755 for directories and 644 for files and that fixed the problem.