I'd been getting both
Could not detect rake tasks
and
LoadError: cannot load such file
Turns out I'd got case wrong on a require statment - works fine on Windows (case insensitive filesystem) but fails on Heroku with those errors (quite mis-leading when looking at the 'Could not detect rake tasks')