I am using capistrano with git to deploy a RoR project. After deployment, the permissions in the current folder are 770 instead of 755, and it cause apache to display a forbidden page. My original folder where i work is using 755 as permissions. In my deploy.rb there is nothing about files permissions.
Why does capistrano change the permissions and how can i have correct permissions when deploying on my apache?
I don’t know about Capistrano, but git itself does not store any permissions, apart from the “executable” bit. You are supposed to achieve the expected permissions by setting an appropiate
umaskin your shell.