Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #31 from geoblacklight/whenever-envs
Browse files Browse the repository at this point in the history
only setup cron jobs in production
  • Loading branch information
mejackreed committed Jan 20, 2015
2 parents 776043f + 1482d1b commit 0227d64
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions config/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
#
set :output, {:error => 'log/error.log', :standard => 'log/cron.log'}
#
every '15 * * * *' do
rake 'layers:check_stanford'
end

every '45 16 */2 * *' do
rake 'layers:check_all'
# Only set cron jobs in production
case @environment

when 'production'
every '15 * * * *' do
rake 'layers:check_stanford'
end

every '45 16 */2 * *' do
rake 'layers:check_all'
end
end
# every 2.hours do
# command "/usr/bin/some_great_command"
Expand Down

0 comments on commit 0227d64

Please sign in to comment.