fix error
This commit is contained in:
parent
4c523b4168
commit
8908ac1617
|
@ -1,5 +1,6 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
|
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
|
||||||
|
Bulletin
|
||||||
Thread.new do
|
Thread.new do
|
||||||
BulletinFeedCache.regenerate_all
|
BulletinFeedCache.regenerate_all
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue