我是 Capistrano 的新手。我设置正确,但是当我运行 cap staging 部署时,我得到了这个 -
DEBUG [b678d5eb] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/myproj/git-ssh.sh /usr/bin/env git ls-remote -h )
DEBUG [b678d5eb] usage: git ls-remote [--heads] [--tags] [-u <exec> | --upload-pack <exec>] <repository> <refs>...
DEBUG [b678d5eb] Finished in 0.325 seconds with exit status 129 (failed).
我认为 git clone url 应该跟在 -h 之后,但我不确定。
我正在使用 Capistrano 3.2.1。这是我的deploy.rb -
lock '3.2.1'
set :application, 'myproj'
set :repository, 'https://vrao@git.test.com/scm/~vrao/myproj.git'
set :scm_passphrase, 'blah'
任何帮助都会很棒。
没关系,当我安装了 3.2.1 时,我正在遵循 capistrano 2x 的文档。
对于任何可能面临同样问题的人,在 capistrano 2x 中,您可以通过设置存储库变量来指定 git 存储库,而在 3x 中,它已更改为 repo_url。我改变了它,现在工作正常了。这是我建议 3x 遵循的文档 -http://capistranorb.com/documentation/getting-started/installation/ http://capistranorb.com/documentation/getting-started/installation/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)