ruby-on-rails-3 – 使用git更改存储库时出现Capistrano错误

栏目: Ruby · 发布时间: 6年前

内容简介:翻译自:https://stackoverflow.com/questions/16764750/capistrano-error-when-change-repository-using-git
我通过Capitrano从 Git

存储库进行了简单的部署.

我想更改我正在使用的存储库,所以我基本上只是改变了

set :repository, “git@github.com:new_repository”

但是在部署时我收到以下错误:

致命:无法解析对象’9cfb …’.

一旦我改变,问题就消失了

set :deploy_via, :remote_cache

set :deploy_via, :copy

我也试过部署:清理但是我收到以下错误:

*`deploy:cleanup’仅针对匹配{:except => {:no_release => true}}的服务器运行,但没有匹配的服务器*

任何想法我怎么能让remote_cache再次工作?

Thansk!

使用capistrano 3,以避免删除repo文件夹:

>改变config / deploy.rb中的repo URL,就像OP已经做的那样

> SSH到您的服务器内部并更改git仓库的远程URL:

ssh user@server.com  
# Go the capistrano deploy root
cd /capistrano/deploy/root/folder  
# Go inside the folder names *repo*
cd repo  
# Manually change the git remote
git remote set-url origin ...

翻译自:https://stackoverflow.com/questions/16764750/capistrano-error-when-change-repository-using-git


以上所述就是小编给大家介绍的《ruby-on-rails-3 – 使用git更改存储库时出现Capistrano错误》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Getting Started with C++ Audio Programming for Game Development

Getting Started with C++ Audio Programming for Game Development

David Gouveia

Written specifically to help C++ developers add audio to their games from scratch, this book gives a clear introduction to the concepts and practical application of audio programming using the FMOD li......一起来看看 《Getting Started with C++ Audio Programming for Game Development》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具