diff options
Diffstat (limited to 'config/schedule.rb')
-rw-r--r-- | config/schedule.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config/schedule.rb b/config/schedule.rb new file mode 100644 index 0000000..e53ebf4 --- /dev/null +++ b/config/schedule.rb | |||
@@ -0,0 +1,23 @@ | |||
1 | # Use this file to easily define all of your cron jobs. | ||
2 | # | ||
3 | # It's helpful, but not entirely necessary to understand cron before proceeding. | ||
4 | # http://en.wikipedia.org/wiki/Cron | ||
5 | |||
6 | # Example: | ||
7 | # | ||
8 | # set :output, "/path/to/my/cron_log.log" | ||
9 | # | ||
10 | # every 2.hours do | ||
11 | # command "/usr/bin/some_great_command" | ||
12 | # runner "MyModel.some_method" | ||
13 | # rake "some:great:rake:task" | ||
14 | # end | ||
15 | # | ||
16 | # every 4.days do | ||
17 | # runner "AnotherModel.prune_old_records" | ||
18 | # end | ||
19 | |||
20 | # Learn more: http://github.com/javan/whenever | ||
21 | every 1.day, at: "6:00am" do | ||
22 | rake "thoughts:email_upvote_report" | ||
23 | end | ||