2012-12-26 25 views
1

http链接,当我做:使“大礼包install”来加入Gemfile中

spree install 

它增加了这两条线在我的Gemfile。

gem 'spree_gateway', :github => 'spree/spree_gateway' 
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => 'edge' 

后来人们试图做捆绑安装,我得到这个错误

github.com[0: 207.97.227.239]: errno=Connection refused 
fatal: unable to connect a socket (Connection refused) 
git://github.com/spree/spree_gateway.git (at master) 

这是因为我的网络代理不允许我做连接的git://但可以连接http://

如何更改spree添加的代码,使其与http或如何使导轨连接:与HTTP的github =>“大礼包/ spree_auth_devise”

回答

1

如果您使用rvm,您的宝石将安装在您的主目录的.rvm文件夹下。如果您使用的是系统ruby,则它们将位于系统ruby的位置,可能是/usr/local/bin。在任何一种情况下,通过在子文件夹lib/ruby/gems/1.9.1/gems的适当位置下寻找狂欢宝石文件夹并寻找狂欢。

一旦找到它,找到文件cmd/lib/spree_cmd/installer.rb。编辑:似乎你在这里找到你的:/home/me/.rvm/gems/ruby-1.9.3-p125/gems/spree_cmd-1.3.0/lib/spree_cmd。你将不得不在这里试验,因为我不知道它是如何工作的,但我会使用add_gem函数中的行。尝试改变

gem :spree, @spree_gem_options 

gem :spree, :git => 'http://github.com/spree/spree.git' 
+0

工程就像一个魅力!谢谢! spree_cmd是一个宝石,我在我的系统中找到了这个路径中的installer.rb文件。 /home/me/.rvm/gems/ruby-1.9.3-p125/gems/spree_cmd-1.3.0/lib/spree_cmd –

1

我猜你可能需要,如果你的背后代理改变语法有点..

gem 'spree_gateway', :git => 'http://github.com/spree/spree_gateway.git'

请检查是否有效。

+0

号**施普雷安装**自动添加行Gemfile中并运行捆绑安装,后来它有很多事情要做像运行的迁移。所以手动编辑Gemfile不起作用 –