我在生产服务器上部署项目时遇到问题。我们使用Capistrano和Passenger。问题是我们将GitHub上的项目存储库移动到了另一个帐户。我更改了deploy.rb文件中的仓库地址,但是在'cap production deploy‘过程中,经过生产服务器的认证,Capistrano正在寻找一个旧的仓库,但失败了。我怀疑这是生产上的repository.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发布于 2011-06-09 11:56:52
尝试编辑shared/cached-copy/.git/config并修改此处列出的git代码库。如果您使用的是remote_cache方法,它会保留一个本地git代码库,并在远程机器上更新该代码库。将其重新指向您的新git代码库,您应该就可以开始工作了。
https://stackoverflow.com/questions/6173745
复制相似问题