Commit 277c8cf3 authored by azul's avatar azul
Browse files

Merge pull request #308 from azul/bugfix/ts-cron

bugfix: make reindex cron action work
parents 59758a76 739a48b9
......@@ -28,8 +28,6 @@ class CronController < ActionController::Base
clean_fragment_cache
when 'codes_expire'
Code.cleanup_expired
when 'sphinx_reindex'
system('rake', '--rakefile', Rails.root+'/Rakefile', 'ts:index', 'RAILS_ENV=production')
else
raise 'no such cron action'
end
......
......@@ -39,7 +39,7 @@ end
# Minimum total time is for delta growing up to
# sqr( 2*R / d) ~ 180 documents
every 6.hour, :at => '0:40' do
curl 'sphinx_reindex'
rake 'ts:index'
end
every 1.day do
......
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