git-deploy
git-deploy copied to clipboard
always sh: 1: /usr/bin/git: not found
i follow this instruction run sudo chown -R yourusername:webserverusername custom-project-repo-dir/ to change the group of the repo. run sudo chmod -R g+s custom-project-repo-dir/ to make the group assignment inherited for new files/dirs. run sudo chmod -R 775 custom-project-repo-dir/ to set read & write for both owner and group.
but, still not work "/usr/bin/git: not found". i try to run which git and get "/usr/bin/git". why?
Are you sure that git is installed on your server, and if it is, are you sure that /usr/bin/git is the correct path? If you have SSH access, try running which git. If it's installed, that should return the path to the executable.
You should also try running the following in a PHP file to find the git path:
<?php
echo shell_exec("which git");