move rvm to correct ruby on cron, escape \!

This commit is contained in:
Emi Matchu 2010-12-02 15:13:55 -05:00
parent 666edc117c
commit 165177d992

View file

@ -1,14 +1,16 @@
# Learn more: http://github.com/javan/whenever # 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" job_type :runner, "cd :path && rails runner -e :environment ':task' :output"
env :MAILTO, 'webmaster@openneo.net' env :MAILTO, 'webmaster@openneo.net'
every :day do every :day do
runner "Item.spider_mall!" runner "Item.spider_mall\\!"
end end
ItemsLimit = 20 ItemsLimit = 20
every :hour do every :hour do
runner "Item.spider_mall_assets! #{ItemsLimit}" runner "Item.spider_mall_assets\\! #{ItemsLimit}"
end end