I’m having trouble getting Tire working using ElasticSearch with the Bonsai addon on the Heroku Cedar stack. It keeps crashing my app and when I check the Heroku logs (i.e. run heroku logs in Terminal), I Errno::ECONNREFUSED (Connection refused - connect(2)).
The setup works fine on my localhost. I’ve been all through the Elastic search resources and haven’t found a fix yet.
Can anyone provide some assistance or guidance?
I finally found it… Through an obscure link on the Heroku Bonsai helps. I did this and it worked: Configuring Tire to use the Bonsai ElasticSearch Heroku add-on
Here’s a little more clarification on what I did to fix it.. In
config/initializers/bonsai.rb: