simple-php-git-deploy
simple-php-git-deploy copied to clipboard
git not available on windows server
I run project in window server 2008. I have completed the installation and setup git in PATH: C:\Program Files\Git\cmd;C:\Program Files\Git\cmd\bin
But test in github, repsonse follow: ` Checking the environment ...
Running as nt authority\system.
Please help!!
what version of git are you using are you using the GitHub one or git-scm
I've only tested the script on linux systems, I have no idea how it's going to behave on anything else.
The script uses which
shell command to determine if the git, rsync and other binaries are available, which seems not to be available on windows. Try commenting out the binaries detecting part of the script to skip it, and see if anything else works, but please backup first!
I have the same issue on Windows. Perhaps if your script allowed for specifying the path to git and rsync, that would fix the issue. I tried commenting out the binaries part as suggested, but then it gives an error that git is not a command when it gets to the part of trying and clone the repository:
<span class="prompt">$</span> <span class="command">git clone --depth=1 --branch master https://github.com/xxxxxx/xxxxxx.git /c/Apache24/htdocs/tmp/spgd-b069d0a5c427ae22e07ac635c4148e56/</span>
<div class="output">'git' is not recognized as an internal or external command,
operable program or batch file.