When using "all gem" I get an error message in the log:
/usr/bin/env: ruby: No such file or directory
It works when I run the task manually. I installed everything using RVM.
I used the which command to find where my Ruby installation is, and I get:
kevin@lovely :/opt/personal$ which ruby /home/kevin/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
and I checked the $ PATH variable where it returns:
kevin@lovely :/opt/personal$ echo $PATH /home/kevin/.rvm/gems/ruby-1.9.2-p290/bin:/home/kevin/.rvm/gems/ ruby-1.9.2-p290@global /bin:/home/kevin/.rvm/rubies/ruby-1.9.2-p290/bin:/home/kevin/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
I believe this should be set up correctly, but I am probably mistaken, as this does not work. Can someone point me in the right direction?
If you're interested, this is what mine every time the crontab output:
# Begin Whenever generated tasks for: rss 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /bin/bash -l -c 'cd /opt/personal && script/rails runner -e development '\''FeedEntry.update_from_feed("http://lovely/blog/feed/")'\'' >> /opt/personal/log/feedzirra.log 2>&1'
Kevin
source share