git: having trouble privileges -
i have web project i'm developing, , want push remote username, ssh://myusername@remote:/home/someotheruser/project.git
.
the problem i want push project inside user's home directory.
i start getting error of permissions , project.git/hooks/post-receive
not fire (i had execute manually) , web project dose not respond on browser until change ownership of public_html/*
user;
what understood :
- i push project errors of permission yet project pushed , on server
- the hook
post-receive
did not fire had go root , fire it - when fire
post-receive
root, files 'checkedout' (from.git
public_html
) ownedroot
user (/home/someuser/project.git
) not have permission use these files 'checkedout' - so
chown -r someuser:someuser *
insidepublic_html
to solve problem
how can solve this?
Comments
Post a Comment