Skip to content

Instantly share code, notes, and snippets.

@mileszs
Created June 25, 2010 17:53
Show Gist options
  • Select an option

  • Save mileszs/453194 to your computer and use it in GitHub Desktop.

Select an option

Save mileszs/453194 to your computer and use it in GitHub Desktop.
def application_packages
if deploy_stage == 'production'
# set up the cron task to reindex
cron 'rake sunspot:reindex', :ensure => :absent
cron 'rake cron',
:command => "/usr/bin/rake -f #{configuration[:deploy_to]}/current/Rakefile cron RAILS_ENV=#{ENV['RAILS_ENV']}",
:hour => 5,
:minute => 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment