LoginSignup
6
6

More than 5 years have passed since last update.

[Rails4] wheneverを使ってcrontabを管理して、cronを回すとzsh:1: command not found: bundleと出る場合

Posted at

これの続きです

rbenvなどのパスを追加

config/schedule.rb
env :PATH, ENV['PATH']
job_type :rbenv_rake, %q!eval "$(rbenv init -)"; cd :path && :environment_variable=:environment bundle exec rake :task --silent :output!

反映

$ whenever --update-crontab
6
6
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
6
6