diff --git a/config/schedule.rb b/config/schedule.rb index ed89692e..037a589d 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -1,14 +1,16 @@ # 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!" + runner "Item.spider_mall\\!" end ItemsLimit = 20 every :hour do - runner "Item.spider_mall_assets! #{ItemsLimit}" + runner "Item.spider_mall_assets\\! #{ItemsLimit}" end