Sim*_*mmo 3 solr ruby-on-rails github sunspot
为了克服solr的错误,我需要运行一个比Rubysms版本的Sunspot中包含的版本更新的版本.我注意到在Github上有一个最近的提交,其中包括更新版本的Solr.
如何配置我的Gemfile直接从repo而不是RubyGems.目前我有以下几点;
gem 'sunspot'
gem 'sunspot_rails'
gem 'sunspot_test'
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git'
group :development, :test do
gem 'sunspot_solr'
gem 'progress_bar'
end
Run Code Online (Sandbox Code Playgroud)
如果我只是将回购添加到太阳黑子宝石线,当我运行捆绑时,一切都会崩溃.由于sunspot_solr gem 在太阳黑子回购中,我不知道我应该使用哪条线从回购中获取.
谢谢,格雷姆
得到它了!答案是指向github上的主要回购,并在适当的地方使用require将其缩小到相关的子部分.
编辑过的Gemfile如下;
gem 'sunspot', :git => "git://github.com/sunspot/sunspot.git"
gem 'sunspot_rails', :git => "git://github.com/sunspot/sunspot.git", :require => "sunspot_rails"
gem 'sunspot_test'
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git'
group :development, :test do
gem 'sunspot_solr', :git => "git://github.com/sunspot/sunspot.git", :require => "sunspot_solr"
gem 'progress_bar'
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
194 次 |
| 最近记录: |