Reputation: 1
I attached a screenshot(error screen shot ) which indicates the error.
Faraday::ConnectionFailed in Devise::SessionsController#create
Connection refused - connect(2) for "localhost" port 9200
I am using bonsai with ruby on rails and deployed to heroku. But it still tries to connect to local 9200.
I have initialiser file as below.
config/initializers/bonsai.rb
require 'elasticsearch/model'
if ENV['BONSAI_URL']
Elasticsearch::Model.client = Elasticsearch::Client.new({url: ENV['BONSAI_URL'], logs: true})
end
Could anyone please help me on this?
Upvotes: 0
Views: 186
Reputation: 497
the issue occurs on bonsai < 6.1 only. So please remove or upgrade current bonsai addon on heroku. Then try again
Upvotes: 0