From d918581058286073cb12f8f1d52a8ab71447877e Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 24 Jun 2020 15:48:57 -0700 Subject: [PATCH] Added Elastic Cloud to deployment docs [skip ci] --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7df1881..113ead7 100644 --- a/README.md +++ b/README.md @@ -1204,9 +1204,24 @@ FactoryBot.create(:product, :some_trait, :reindex, some_attribute: "foo") Searchkick uses `ENV["ELASTICSEARCH_URL"]` for the Elasticsearch server. This defaults to `http://localhost:9200`. +- [Elastic Cloud](#elastic-cloud) - [Heroku](#heroku) - [Amazon Elasticsearch Service](#amazon-elasticsearch-service) -- [Other](#other) +- [Self-Hosted and Other](#other) + +### Elastic Cloud + +Create an initializer `config/initializers/elasticsearch.rb` with: + +```ruby +ENV["ELASTICSEARCH_URL"] = "https://user:password@host:port" +``` + +Then deploy and reindex: + +```sh +rake searchkick:reindex:all +``` ### Heroku @@ -1281,7 +1296,7 @@ Then deploy and reindex: rake searchkick:reindex:all ``` -### Other +### Self-Hosted and Other Create an initializer `config/initializers/elasticsearch.rb` with: -- libgit2 0.21.0