Capistrano: Deployment Permission Issue

I had a problem deploying a Rails application on my server. Performance

cap deploy

I get a lot of errors stating that chmod cannot change permissions (and only) to git objects:

...
 ** [out :: β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ] chmod: changing permissions of `/srv/www/kunsthof/releases/20101113162736/.git/objects/04/779c6d894bbea4c26d6e035f71cd1ab124cc90': Operation not permitted
...
failed: "sh -c 'chmod -R g+w /srv/www/kunsthof/releases/20101113162736'" on β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ

Files are placed there in the deployment itself, so it should be possible for the user to deploy their permissions. Any suggestions on what might be the issue here?

+3
source share
1 answer

, , rsynced/ . .git , spec/test ( ) :

set :copy_exclude, [".git", "spec"]

.git chmod .

+4

Source: https://habr.com/ru/post/1774705/


All Articles