【发布时间】:2016-03-15 21:26:09
【问题描述】:
我正在尝试安装spree 及其扩展spree_static_content。我想要spree 3.1.0 beta,因为那是spree_static_content 的依赖项。但是当我尝试运行捆绑安装时,我得到了
Fetching git://github.com/spree/spree.git
但它卡在那里。这是我的宝石文件
gem 'spree', github: 'spree/spree', branch: '~> 3.1.0.beta'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '~> 3.1.0.beta'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '~> 3.1.0.beta'
gem 'spree_static_content', github: 'spree-contrib/spree_static_content', branch: 'master'
我可以通过仅提及版本来安装其他版本的 spree,
例如。
gem 'spree' , '~> 3.0.7' 捆绑安装运行成功。谁能告诉我为什么捆绑安装不起作用。我尝试更新 bundler ,没有帮助。
在尝试时,我了解到由于某种原因从 github 获取 spree 不起作用,但从 github 获取其他 gem 可以工作
【问题讨论】:
-
从 GitHub 安装 anything 有效吗?也许您的
git连接是防火墙。试过https? -
没有防火墙阻止,但是你是怎么做到的`https`。我尝试了`git config --global url。"github.com".insteadOfgit://github.com`但它没有将`git://github.com/spree/spree.git`更改为https。
-
你在其他电脑上试过了吗?它对您不起作用似乎很奇怪,但您需要尝试系统地隔离问题。
-
我在那里无论如何我可以对此做一些调试?
标签: ruby-on-rails rubygems spree