我试图弄清楚为什么我在尝试部署我的 rails 应用程序时从远程 git 存储库中收到错误。它告诉我它不是一个 git 存储库,但我可以毫无问题地推拉它。然而,我最近遇到了 git 没有被 bash 发现的问题,但这只是我安装 macports 时出现的路径变量问题(我认为)。现在已经修复了。提前感谢您提供的任何帮助!错误输出如下:
my-MacBook-Pro:project myUser$ cap deploy:update
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@server.example.ca/usr/local/git_root/project.git master"
fatal: 'git@server.example.ca/usr/local/git_root/project.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
*** [deploy:update_code] rolling back
* executing "rm -rf /usr/local/www/sites/project.example.ca/releases/20120403193900; true"
servers: ["project.example.ca"]
[project.example.ca] executing command
[project.example.ca] rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-1.9.2-p290@project' -c 'rm -rf /usr/local/www/sites/project.example.ca/releases/20120403193900; true'
command finished in 639ms
Command git ls-remote git@server.example.ca/usr/local/git_root/project.git master returned status code pid 1815 exit 128