Commit 4a0ca8f0 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'fix-elastic-rake-task' into 'master'

Add full environment to rake gitlab:elastic:index

See merge request gitlab-org/gitlab!76429
parents 69632281 5859cf09
......@@ -3,7 +3,7 @@
namespace :gitlab do
namespace :elastic do
desc "GitLab | Elasticsearch | Index everything at once"
task :index do
task index: :environment do
# UPDATE_INDEX=true can cause some projects not to be indexed properly if someone were to push a commit to the
# project before the rake task could get to it, so we set it to `nil` here to avoid that. It doesn't make sense
# to use this configuration during a full re-index anyways.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment