Commit d918581058286073cb12f8f1d52a8ab71447877e
1 parent
f5f6c3c6
Exists in
master
and in
5 other branches
Added Elastic Cloud to deployment docs [skip ci]
Showing
1 changed file
with
17 additions
and
2 deletions
Show diff stats
README.md
... | ... | @@ -1204,9 +1204,24 @@ FactoryBot.create(:product, :some_trait, :reindex, some_attribute: "foo") |
1204 | 1204 | |
1205 | 1205 | Searchkick uses `ENV["ELASTICSEARCH_URL"]` for the Elasticsearch server. This defaults to `http://localhost:9200`. |
1206 | 1206 | |
1207 | +- [Elastic Cloud](#elastic-cloud) | |
1207 | 1208 | - [Heroku](#heroku) |
1208 | 1209 | - [Amazon Elasticsearch Service](#amazon-elasticsearch-service) |
1209 | -- [Other](#other) | |
1210 | +- [Self-Hosted and Other](#other) | |
1211 | + | |
1212 | +### Elastic Cloud | |
1213 | + | |
1214 | +Create an initializer `config/initializers/elasticsearch.rb` with: | |
1215 | + | |
1216 | +```ruby | |
1217 | +ENV["ELASTICSEARCH_URL"] = "https://user:password@host:port" | |
1218 | +``` | |
1219 | + | |
1220 | +Then deploy and reindex: | |
1221 | + | |
1222 | +```sh | |
1223 | +rake searchkick:reindex:all | |
1224 | +``` | |
1210 | 1225 | |
1211 | 1226 | ### Heroku |
1212 | 1227 | |
... | ... | @@ -1281,7 +1296,7 @@ Then deploy and reindex: |
1281 | 1296 | rake searchkick:reindex:all |
1282 | 1297 | ``` |
1283 | 1298 | |
1284 | -### Other | |
1299 | +### Self-Hosted and Other | |
1285 | 1300 | |
1286 | 1301 | Create an initializer `config/initializers/elasticsearch.rb` with: |
1287 | 1302 | ... | ... |