title: Skipping index creation, cannot connect to Elasticsearch
body: <p>I'm having difficulty with connecting my Heroku app to an Elasticsearch instance. I'm using the tire gem and the bonsai add-on on Heroku.</p>
  
  <p>When I deploy the application I get this error twice:</p>
  
  <blockquote>
    <p>Skipping index creation, cannot connect to Elasticsearch</p>
  </blockquote>
  
  <p>I also have this in my initialize bonsai.rb file:</p>
  
  <pre><code>if ENV['BONSAI_INDEX_URL']
    bonsai_uri = URI.parse(ENV['BONSAI_INDEX_URL'])
    Tire.configure do
      url "http://sampleindex.bonsai.io"
    end
    BONSAI_INDEX_NAME = bonsai_uri.path[1..-1]
  else
    BONSAI_INDEX_NAME = "my_index"
  end
  </code></pre>