forked from OpenNeo/impress
16 lines
401 B
Ruby
16 lines
401 B
Ruby
# Learn more: http://github.com/javan/whenever
|
|
|
|
RVM_RUBY = 'ruby-1.9.2@impress'
|
|
set :job_template, "bash -l -c 'rvm use #{RVM_RUBY} && :job'"
|
|
job_type :runner, "cd :path && rails runner -e :environment ':task' :output"
|
|
|
|
env :MAILTO, 'webmaster@openneo.net'
|
|
|
|
every :day do
|
|
runner "Item.spider_mall\\!"
|
|
end
|
|
|
|
ItemsLimit = 20
|
|
every :hour do
|
|
runner "Item.spider_mall_assets\\!\\(#{ItemsLimit}\\)"
|
|
end
|