私はいつでも(https://github.com/javan/whenever)でcronジョブを作成しました:
every 1.hours do
rake "scrape"
end
rake Scrape タスクは、手動で実行すると問題なく実行されますが、cron を実行すると次のようになります。
rake aborted!
Could not find table 'beskeds'
コマンド実行は次のとおりです。
/bin/bash -l -c 'cd /Users/klaus/Documents/src/Ruby/rails/fintra && RAILS_ENV=production bundle exec rake scrape --silent'
ちなみに私はRVMを使っています