diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 10:33:07 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 10:33:07 -0500 |
commit | 9681897e9ace534c4559fa9be20aa86af1a42e13 (patch) | |
tree | 85fbe155f6d1db7f8e232dac40be109fa066f9ed /config | |
parent | de217df62df5725450ba7fd0084a00a8ebe24599 (diff) | |
download | thoughts-9681897e9ace534c4559fa9be20aa86af1a42e13.tar.gz thoughts-9681897e9ace534c4559fa9be20aa86af1a42e13.tar.bz2 thoughts-9681897e9ace534c4559fa9be20aa86af1a42e13.zip |
Add daily upvote email like AO3 kudos
Diffstat (limited to 'config')
-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 | ||