2013-10-11 99 views
2

我想在Nitrous.io上使用Elasticsearch。在Nitrous.io上安裝ElasticSearch?

我下面this tutorial而是試圖重新索引模式,我得到這個錯誤

[email protected]:~/fayl$ rake searchkick:reindex CLASS=Fail                          
rake aborted!                                        
Connection refused - connect(2)                                   
/home/action/.rvm/gems/ruby-1.9.3-p374/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'                 
/home/action/.rvm/gems/ruby-1.9.3-p374/gems/rest-client- 1.6.7/lib/restclient/request.rb:64:in `execute'                 
/home/action/.rvm/gems/ruby-1.9.3-p374/gems/tire-0.6.0/lib/tire/http/client.rb:11:in `get'                     
/home/action/.rvm/gems/ruby-1.9.3-p374/gems/searchkick-0.2.8/lib/searchkick/reindex.rb:43:in `clean_indices'                
/home/action/.rvm/gems/ruby-1.9.3-p374/gems/searchkick-0.2.8/lib/searchkick/reindex.rb:10:in `reindex'                  
/home/action/.rvm/gems/ruby-1.9.3-p374/gems/searchkick-0.2.8/lib/searchkick/tasks.rb:10:in `block (2 levels) in <top (required)>'           
/home/action/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval'                        
/home/action/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `<main>'                        
Tasks: TOP => searchkick:reindex  

我不知道我在Nitrous.io安裝Elasticsearch正常時。有沒有人成功地做到了這一點?或者你可以指出如何實施這個指南?

回答

5

我還沒有嘗試過nitrous.io,但是您需要告訴Searchkick在哪裏可以找到Elasticsearch。

與創建初始化config/initializers/elasticsearch.rb

ENV["ELASTICSEARCH_URL"] = "http://username:[email protected]"

你也可以使用一個託管版本一樣Searchly