Can I use Whenever to run scheduled tasks (cron jobs) on Aptible Deploy?

The best way to use Whenever with Aptible Deploy is to use Whenever to generate a crontab , then execute that crontab using Supercronic

To do so, add the whenever gem to your Gemfile , then add a config/schedule.rb file to your app repository.

Here is an example config/schedule.rb that schedules bundle exec rake db:awesome to run every day at 2 AM:

every 1.day, at: '2:00 am' do
  command 'bundle exec rake db:awesome'
end

Finally, follow the instructions under How do I run scheduled tasks (cron jobs) on Aptible Deploy?, except that instead of writing the crontab and copying it to your image, you should use whenever to generate it:

RUN whenever > /app/crontab