I have a ruby on rails app and I need to schedule a crontab for a rake task.
*/5 * * * * RAILS_ENV=production /usr/local/bin/rake -f /usr/local/www/mysite-web-production/current/Rakefile my_site:export_products >> /var/log/export_feed.log 3>&1
However, it's not working (it works when I do it manually, but not as a crontab) and it's showing me
/usr/bin/env: ruby: No such file or directory.
I'm not using RVM. I'm using ruby 1.9.3 and rails 3 on Linux.