質問編集履歴

6

情報追加

2019/04/09 02:51

投稿

s_diff
s_diff

スコア107

test CHANGED
File without changes
test CHANGED
@@ -128,11 +128,17 @@
128
128
 
129
129
 
130
130
 
131
- $ cap
131
+ $ bundle exec cap production deploy
132
132
 
133
- Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.
133
+ <省略>
134
134
 
135
+ INFO [12345678] Running $HOME/.rbenv/bin/rbenv exec bundle exec whenever --update-crontab myapp --set environment=production --roles=app,db,web as mycompany@52.193.00.000
135
136
 
137
+ DEBUG [12345678] Command: cd /var/www/rails/myapp/releases/20190409024624 && ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="" RAILS_ENV="production" ; $HOME/.rbenv/bin/rbenv exec bundle exec whenever --update-crontab myapp --set environment=production --roles=app,db,web )
138
+
139
+ DEBUG [5f34124e] [write] crontab file updated
140
+
141
+ <省略>
136
142
 
137
143
 
138
144
 

5

情報追加

2019/04/09 02:51

投稿

s_diff
s_diff

スコア107

test CHANGED
File without changes
test CHANGED
@@ -128,6 +128,12 @@
128
128
 
129
129
 
130
130
 
131
+ $ cap
132
+
133
+ Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.
134
+
135
+
136
+
131
137
 
132
138
 
133
139
  ###実現したいこと

4

情報の修正

2019/04/09 00:02

投稿

s_diff
s_diff

スコア107

test CHANGED
File without changes
test CHANGED
@@ -120,7 +120,7 @@
120
120
 
121
121
 
122
122
 
123
- 5 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''SampleMailer.inform_sample_on_monday_now.deliver_now'\'' >> log/crontab.log 2>&1'
123
+ 5 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''SampleMailer.inform_sample_on_monday.deliver_now'\'' >> log/crontab.log 2>&1'
124
124
 
125
125
 
126
126
 

3

情報の修正

2019/04/08 07:55

投稿

s_diff
s_diff

スコア107

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  every :monday, :at => '10:30 am' do
24
24
 
25
- runner "SampleMailer.inform_sample_at_month.deliver_now"
25
+ runner "SampleMailer.inform_sample_on_monday.deliver_now"
26
26
 
27
27
  end
28
28
 
@@ -96,7 +96,7 @@
96
96
 
97
97
 
98
98
 
99
- 30 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''SampleMailer.inform_sample_at_month.deliver_now.deliver_now'\'' >> log/crontab.log 2>&1'
99
+ 30 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''SampleMailer.inform_sample_on_monday.deliver_now'\'' >> log/crontab.log 2>&1'
100
100
 
101
101
 
102
102
 
@@ -120,7 +120,7 @@
120
120
 
121
121
 
122
122
 
123
- 5 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''SampleMailer.inform_sample_at_month.deliver_now.deliver_now'\'' >> log/crontab.log 2>&1'
123
+ 5 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''SampleMailer.inform_sample_on_monday_now.deliver_now'\'' >> log/crontab.log 2>&1'
124
124
 
125
125
 
126
126
 

2

情報の修正

2019/04/08 07:54

投稿

s_diff
s_diff

スコア107

test CHANGED
File without changes
test CHANGED
@@ -76,7 +76,7 @@
76
76
 
77
77
 
78
78
 
79
- このタスクが本番環境でこのタスクが実行されず、その原因がなんなのかわかりません。
79
+ このタスクが本番環境で実行されず、その原因がなんなのかわかりません。
80
80
 
81
81
 
82
82
 

1

情報の修正

2019/04/08 07:49

投稿

s_diff
s_diff

スコア107

test CHANGED
File without changes
test CHANGED
@@ -96,7 +96,7 @@
96
96
 
97
97
 
98
98
 
99
- 30 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''ProductUpMailer.inform_product_upload_once_a_week.deliver_now'\'' >> log/crontab.log 2>&1'
99
+ 30 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''SampleMailer.inform_sample_at_month.deliver_now.deliver_now'\'' >> log/crontab.log 2>&1'
100
100
 
101
101
 
102
102
 
@@ -120,7 +120,7 @@
120
120
 
121
121
 
122
122
 
123
- 5 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''ProductUpMailer.inform_product_upload_once_a_week.deliver_now'\'' >> log/crontab.log 2>&1'
123
+ 5 10 * * 1 /bin/bash -l -c 'cd /Users/username/Desktop/job/myapp && bundle exec bin/rails runner -e production '\''SampleMailer.inform_sample_at_month.deliver_now.deliver_now'\'' >> log/crontab.log 2>&1'
124
124
 
125
125
 
126
126