sunspot_rails gem - “ Errno:: ECONNREFUSED (Connection refused - connect (2)) ”

前端 未结 4 738
有刺的猬
有刺的猬 2020-12-30 01:50

I use gem sunspot_rails https://github.com/outoftime/sunspot I did everything according to the instructions on http://railscasts.com/episodes/278-search-with-sunspot, but ge

4条回答
  •  遥遥无期
    2020-12-30 02:31

    Just configure the rake task with the test environment:

    rake sunspot:solr:run RAILS_ENV=test
    

提交回复
热议问题