Ruby bundle install --deployment

hunter · 2012年04月05日 · 最后由 hunter 回复于 2012年04月07日 · 3372 次阅读

rubychina 的 GEM,当指定是:git=>http://github.com/....的时候,老是出现

http://github.com/xdite/bootstrap-rails.git (at master) is not checked out. Please run bundle install 据说这样可以解决问题 bundle install --deployment

..... Your bundle is complete! It was installed into ./vendor/bundle

总算把 spork 起来了。

http会重写向到https,容易只证书产生问题,可以设置下 url 替换,在 git 的 remote 地址是http://github.com的时候,替换成git://github.com

git config --global 'url.git://github.com.insteadOf' 'http://github.com'

我只能用 http 协议,bundle install --deployment 也没有用了,最后只好用本地保存,然后改用:path 绕过去。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号