問題
- wheneverでrake taskのスケジューラを作ったら
Error: unknown argument '--silent'.
で動かなかった
調査
-
bundle exec whenever
で生成結果をみるとrake taskオプションに--silent
が付いていた。
対策
- ここにある解決策でOK -> https://github.com/javan/whenever/issues/524
job_type :rake, 'cd :path && :environment_variable=:environment :bundle_command rake :task :output'
every 3.minutes do
rake 'hoge_task'
end