forked from OpenNeo/impress
move rvm to correct ruby on cron, escape \!
This commit is contained in:
parent
666edc117c
commit
165177d992
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue