Skip to content

Commit

Permalink
Fixes minor problem with set up of ES activities indices and alias in…
Browse files Browse the repository at this point in the history
… development environment.
  • Loading branch information
svogt0511 committed Dec 11, 2023
1 parent ae61319 commit 1ddec2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/tasks/activity.rake
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ namespace :activity do
puts Activity.monitor_reindex
end

desc "Create alias for activities"
task create_alias: :environment do
puts Activity.create_alias(index: ENV["INDEX"], alias: ENV["ALIAS"])
end

desc "Import all activities"
task import: :environment do
from_id = (ENV["FROM_ID"] || 1).to_i
Expand Down
1 change: 1 addition & 0 deletions lib/tasks/elasticsearch.rake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ namespace :elasticsearch do
Rake::Task["event:create_alias"].invoke

Rake::Task["activity:create_index"].invoke
Rake::Task["activity:create_alias"].invoke

Rake::Task["contact:create_index"].invoke
Rake::Task["contact:create_alias"].invoke
Expand Down

0 comments on commit 1ddec2e

Please sign in to comment.