我是使用Capistrano的新手.我正确设置了它,但是当我运行cap staging deploy时,我得到了 -
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| --upload-pack ] ... 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'
任何帮助都会很棒.
没关系,我正在关注capistrano 2x的文档,而我已经安装了3.2.1.
对于可能面临相同问题的任何人,在capistrano 2x中,您可以通过设置存储库变量来指定git repo,而在3x中,它已被更改为repo_url.我改变它,现在它工作正常.这是我建议遵循3x的文档 - http://capistranorb.com/documentation/getting-started/installation/