上限部署-错误:找不到存储库 [英] Cap deploy - ERROR: Repository not found

查看:62
本文介绍了上限部署-错误:找不到存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经继承了一个项目,并且对事物的开发方面感到满意,但是sysop较差,并且Capistrano部署失败。对于以前的开发人员之前已部署的项目:

I've inherited a project and am comfortable with the development side of things, but have poor sysops, and the Capistrano deploy is failing. For a project that has been deployed before by the previous dev:

cap deploy:check

运行正常,导致

You appear to have all necessary dependencies installed

但是当我尝试部署时,我得到了

But when I try to deploy, I get

...
ERROR: Repository not found.
...

我有:


  • 三重检查了github仓库地址

  • 确认我可以在本地计算机上从仓库中推送和拉取罚款

  • 确认可以通过SSH从服务器连接到github

  • 确认可以在服务器上复制存储库

  • 尝试使用代理启用和禁用转发

  • 确认.git / config和config / deploy.rb中的回购路径匹配

  • Triple checked the github repo address
  • Confirmed I can push and pull fine from the repo on my local machine
  • Confirmed I can connect fine from the server to github via SSH
  • Confirmed I can clone the repo fine on the server
  • Tried with agent forwarding both on and off
  • Confirmed the repo path matches in .git/config and config/deploy.rb

此刻,当代理转发时,从服务器进入github的SSH正在返回先前开发者的信息,该开发者仍然可以访问github存储库。

At the moment, when agent forwarding off, the SSH into github from the server is returning the info for the previous dev, who still has access to the github repo.

Hi xxxxxx! You've successfully authenticated, but GitHub does not provide shell access.

启用代理转发后,我将显示为已通过身份验证的用户。

When agent forwarding is on, I show as being the authenticated user.

解决此问题的任何技巧吗?

Any tips on resolving this? More than happy for a decent URL that goes through troubleshooting this.

推荐答案

确定,通过消除过程解决了这个问题,对此感到非常高兴。这是'deploy.rb'中的以下行

OK, figured it out by a process of elimination. It was the following line in 'deploy.rb'

set :deploy_via, "remote_cache"

对此发表评论后,它可以很好地部署。如果我取消注释,则会再次出现相同的错误。因此,这肯定是问题所在。

When this is commented out it deploys fine. If I uncomment it, it breaks again with the same error. So that certainly seems to be the problem.

我不知道为什么会这样。但现在,我将关闭它。

I have no idea why this would be happening. But for now, I'll close this.

这篇关于上限部署-错误:找不到存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆