Rake searchkick reindex无法在heroku搜索框中工作

时间:2016-06-23 14:02:08

标签: ruby-on-rails heroku searchkick search-box

一旦我将代码部署到heroku服务器并运行 heroku run rake searchkick:reindex CLASS = Listing ,我确实做了 heroku run rake db:migrate

rake aborted!
Faraday::TimeoutError: Net::ReadTimeout
/app/vendor/bundle/ruby/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:82:in `perform_request'
/app/vendor/bundle/ruby/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40:in `block in call'
/app/vendor/bundle/ruby/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:87:in `with_net_http_connection'
/app/vendor/bundle/ruby/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:32:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/searchkick-1.3.0/lib/searchkick/middleware.rb:9:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response'
/app/vendor/bundle/ruby/2.2.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request'
/app/vendor/bundle/ruby/2.2.0/gems/elasticsearch-transport-1.0.17/lib/elasticsearch/transport/transport/http/faraday.rb:21:in `block in perform_request'

1 个答案:

答案 0 :(得分:0)

检查您是否已安装并运行弹性搜索