I'm having an issue with trying to use the whenever
gem to schedule a job.
I've installed the gem, and created the schedule.rb
file, with a job to run at '11:00 pm'.
However, from my understanding I need to run
whenever --update-crontab
But this just returns
No such file or directory - crontab
I've tried googling this but I can't see any other people having this issue and it doesn't say on the gem information about it. Where should this crontab file be? Or does it exist somewhere else?
set :output, "log/development.log"
every 1.day, at: '11:00 pm' do
runner "CarRental.renew"
end