Skip to content

Instantly share code, notes, and snippets.

@MarceloCajueiro
Created July 15, 2011 22:00
Show Gist options
  • Save MarceloCajueiro/1085642 to your computer and use it in GitHub Desktop.
Save MarceloCajueiro/1085642 to your computer and use it in GitHub Desktop.
Cron with RVM to run a rake task
0 0 * * * cd /data/project/; bash -c 'source /usr/local/rvm/bin/rvm && rake -s task' > /tmp/task.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment