0

I'm trying to create a cron job that runs a model method with the whenever gem but i'm having trouble. I'm getting

schedule.rb

every 1.hours do
  runner "DailyAttendance.fetch_data"
end

I also ran the whenever --update-crontab to update the cron job.

Error: bundler: not executable: bin/rails

Santosh Kumbhar
  • 183
  • 3
  • 15

0 Answers0