Skip to content

Instantly share code, notes, and snippets.

@topher6345
Last active August 29, 2015 14:06
Show Gist options
  • Save topher6345/fb0301a630a887de9d50 to your computer and use it in GitHub Desktop.
Save topher6345/fb0301a630a887de9d50 to your computer and use it in GitHub Desktop.
Execute rake task from cron job on raspberry pi

* * * * * cd /home/pi/Sites/testapp && /home/pi/.rvm/bin/rvm all do bundle exec rake sendemail:send >> /home/pi/Sites/testapp/log/cronlog.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment