How can I install/use elasticsearch in my R&R app?
This tutorial don’t work with my App because I use other port 8080 for my app and elasticsearch use same.
EDIT
I change port with this settings:
Elasticsearch’s settings:
network.host: ${OPENSHIFT_INTERNAL_IP}
transport.tcp.port: 15001
http.port: 15002
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: []
Tire’s settings:
Tire.configure do
url "127.12.64.1:15001"
logger "#{Rails.root}/log/elasticsearch.log", level: 'debug'
end
And I have this error:
Request Timeout (RestClient::RequestTimeout)
If I change port to 15002, I have some error too.
You can use the same approach … just bind to 15000+ port. Then you can connect to Elastic from your app $OPENSHIFT_INTERNAL_IP:$YOUR_PORT.