I am trying to use whenever to execute a rake task onces a day. Im getting this error
/bin/bash: bundle: command not found /home/app/.rvm/rubies/ruby-1.9.2-p
I hate this problem - I've spent hours trying to solve it too.
What works for me is to add
RAILS_ENV=production; source /usr/local/rvm/scripts/rvm;
before the bundle command.