Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created June 30, 2009 15:05
Show Gist options
  • Save nicolasblanco/138209 to your computer and use it in GitHub Desktop.
Save nicolasblanco/138209 to your computer and use it in GitHub Desktop.
root@ec2-72-44-38-243:~# crontab -l
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:/usr/sbin
MAILTO=system@keldelice.com
# Automatically set the clock for all machines
15 4 * * * ntpdate pool.ntp.org
# Reindex task, only on app primary
*/30 * * * * cd /mnt/keldelice-production/current && sudo -u rails RAILS_ENV=production rake ts:index
15 4 * * * cd /mnt/keldelice-production/current && sudo -u rails RAILS_ENV=production rake lemonde:sync_content
root@ec2-72-44-38-243:~# cd /mnt/keldelice-production/current && sudo -u rails RAILS_ENV=production rake lemonde:sync_content
(in /mnt/keldelice-production/releases/20090630145501)
root@ec2-72-44-38-243:/mnt/keldelice-production/current#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment