chruby: not found
If your cron log says something like this:
/bin/sh: 1: chruby: not found
It's very likely that cron can't find chruby1. Since cron has a very stripped down environment, you have to add the follow lines at the top of your crontab (su/login as the user that is running your cronjobs and edit your crontab with
SHELL=/bin/bash HOME=/home/deploy PATH=/bin:/usr/bin:/usr/local/bin
Whenever and chruby
# config/schedule.rb job_type :runner, "cd :path && /usr/local/bin/chruby-exec ruby-2.3.0 -- bin/rails runner -e :environment ':task' :output"
This will convert to:
0 1 * * * /bin/bash -l -c 'cd /your/webserver/path/ && /usr/local/bin/chruby-exec ruby-2.3.0 -- bin/rails runner -e production '\''SomeService::SomeClass.some_method'\'''