How to set up Cron to trigger a Rake?
Hello - I have a rake task that I'd like to schedule a cron to run. My Rails 4 droplet is running Ubuntu 12.10 (Nginx + Unicorn). Here's what I have in crontab: SHELL=/bin/bash PATH=/sbin:/bin/usr/bin HOME=/ MAILTO="firstname.lastname@example.org" * * * * * /bin/bash -l -c 'source ~/.bash_profile && cd /home/rails && RAILS_ENV=production bin/rake populate:fetch_nr_songs' I get this error /etc/profile.d/rvm.sh: line 9: ps: command not found /etc/profile.d/rvm.sh: line 10: ps: command not found /usr/local/rvm/scripts/rvm: line 96: dirname: command not found ERROR: Missing proper 'which' command. Make sure it is installed before using RVM! Any fix would be much appreciated thanks