質問編集履歴

1

コードの追加

2018/09/06 08:21

投稿

rantarn0326
rantarn0326

スコア6

test CHANGED
File without changes
test CHANGED
@@ -9,6 +9,42 @@
9
9
 
10
10
 
11
11
 
12
+
13
+ ```
14
+
15
+ require File.expand_path(File.dirname(__FILE__) + "/environment")
16
+
17
+
18
+
19
+ set :output, 'log/crontab.log'
20
+
21
+ if Rails.env.production?
22
+
23
+ set :environment, :production
24
+
25
+ elsif Rails.env.development?
26
+
27
+ set :environment, :development
28
+
29
+ else
30
+
31
+ set :environment, :staging
32
+
33
+ end
34
+
35
+ ##5日後から
36
+
37
+ every 1.day do
38
+
39
+ runner 'send_mail'
40
+
41
+ end
42
+
43
+
44
+
45
+
46
+
47
+ ```
12
48
 
13
49
 
14
50