git - Capistrano 在 git :check 处停止

标签 git capistrano

当我运行 cap <stage> deploy --trace我得到了:

> $ bundle exec cap production deploy --trace
** Invoke production (first_time)
** Execute production
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rbenv:validate (first_time)
** Execute rbenv:validate
** Invoke rbenv:map_bins (first_time)
** Execute rbenv:map_bins
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Invoke deploy:set_shared_assets (first_time)
** Execute deploy:set_shared_assets
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Execute deploy:check
** Invoke git:check (first_time)
** Invoke git:wrapper (first_time)
** Execute git:wrapper
 INFO [d204de77] Running /usr/bin/env mkdir -p /tmp/control-panel/ on 10.0.1.6
 INFO [d204de77] Finished in 0.274 seconds with exit status 0 (successful).
 INFO Uploading /tmp/prey-control-panel/git-ssh.sh 100.0%
 INFO [a9e748c9] Running /usr/bin/env chmod +x /tmp/control-panel/git-ssh.sh on 10.0.1.6
 INFO [a9e748c9] Finished in 0.274 seconds with exit status 0 (successful).
** Execute git:check

它就停在那里。我认为问题与我拥有的其他公钥有关。我从事 DevOps 工作,我有大约 5 个经常使用的不同 key 。

有什么想法吗?我应该删除我所有的 key 还是什么? :)

谢谢。

最佳答案

我解决了删除和重新添加我的 ssh key 的问题。看起来我的 ssh-agent 上的 key 太多了...

ssh-add -D ; ssh-add ~/.ssh/id_rsa

关于git - Capistrano 在 git :check 处停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21432062/

相关文章:

php - Capifony部署到服务器X,清除服务器X和Y上的APC缓存

ruby-on-rails - http代理背后的capistrano

ruby-on-rails - 使用 capistrano 时如何阻止 bundle 程序在屏幕上显示密码?

Git: checkout 先前提交的文件并将其修改为 HEAD

git list 在几次提交中更改了文件

git - 是否可以将 git 提交标记为正在进行的工作?

Git diff,哪些开发者贡献最大

git fetch upstream 不起作用

ruby-on-rails - capistrano 未正确使用带有 bundler 的 Rails 环境

ruby-on-rails - Capistrano:如何设置全局环境变量?