【问题标题】:New repository, production problem新存储库,生产问题
【发布时间】:2011-05-30 08:05:22
【问题描述】:

我在生产服务器上部署项目时遇到问题。我们使用 Capistrano 和Passenger。问题是我们将 GitHub 上的项目存储库移到了另一个帐户。我更改了文件 deploy.rb 中的存储库地址,但是,在“cap production deploy”期间,经过生产服务器的身份验证,Capistrano 正在寻找旧的存储库,但失败了。我怀疑这是存储库中的更改. git 在生产中,但我不知道该怎么做。

servers: ["85.xxx.xxx.xxx"]
Password:
 [85.xxx.xxx.xx] executing command
** [85.xxx.xxx.xx:: err] ERROR: repo / repo.git does not exist. Did you enter it correctly?
** [85.xxx.xxx.xx:: err] fatal: The remote end hung up unexpectedly
 command finished in 4220ms
*** [deploy: update_code] rolling back

【问题讨论】:

    标签: ruby-on-rails-3 git capistrano


    【解决方案1】:

    尝试编辑shared/cached-copy/.git/config 并修改那里列出的git repo。如果您使用remote_cache 方法,它会保留一个本地git repo 并在远程机器上更新它。将其重新指向您的新 git 存储库,您应该一切顺利。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-02
      • 2011-04-21
      • 1970-01-01
      • 2013-11-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多