Commit 5859cf09 authored by Dmitry Gruzd's avatar Dmitry Gruzd Committed by Jan Provaznik

Add full environment to rake gitlab:elastic:index

parent beee1db2
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
namespace :gitlab do namespace :gitlab do
namespace :elastic do namespace :elastic do
desc "GitLab | Elasticsearch | Index everything at once" 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 # 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 # 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. # 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