title: Remote Elasticsearch connection from local rails
body: <p>I have a rails app that is running on a remote elasticsearch server. Rails console works fine with the connection to Elasticsearch remote server but when I try to do anything like <code>db:migrate</code> or <code>assets:precompile</code> it looks like it tries to connect to elasticsearch local server and throw the error 
  <code>Faraday::ConnectionFailed: Connection refused - connect(2) for "localhost" port 9200</code></p>