temporary fix for indexing on release

This commit is contained in:
Tao Bror Bojlén 2019-07-27 12:05:55 +03:00
parent d5a114fa43
commit 0f5e484bcf
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
1 changed files with 4 additions and 0 deletions

View File

@ -16,7 +16,11 @@ defmodule Backend.Release do
end
def index do
# TODO: this isn't the right way to handle this.
# See https://github.com/danielberkompas/elasticsearch-elixir/issues/76
Application.ensure_all_started(@app)
Index.hot_swap(Cluster, "instances")
:init.stop()
end
def rollback(repo, version) do