Skip to content

Commit

Permalink
Eager load application when generate config
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Apr 8, 2015
1 parent 2d8eb7e commit 82c12ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sphinx/integration/tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ namespace :sphinx do

desc 'Rebuild Sphinx'
task :rebuild, [:node] => :environment do |_, args|
Rails.application.eager_load!
Sphinx::Integration::Helper.new(args[:node]).rebuild
end

desc 'Generate configuration files'
task :conf => ['sphinx:set_indexing_mode', :environment] do
Rails.application.eager_load!
Sphinx::Integration::Helper.new.configure
end

Expand Down

0 comments on commit 82c12ca

Please sign in to comment.