LoginSignup
0
0

More than 5 years have passed since last update.

rails5 whenever で Error: unknown argument '--silent'.

Posted at

問題

  • wheneverでrake taskのスケジューラを作ったら Error: unknown argument '--silent'. で動かなかった

調査

  • bundle exec whenever で生成結果をみるとrake taskオプションに --silent が付いていた。

対策

job_type :rake, 'cd :path && :environment_variable=:environment :bundle_command rake :task :output'

every 3.minutes do
  rake 'hoge_task'
end
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0