質問編集履歴
7
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -230,6 +230,12 @@
|
|
230
230
|
|
231
231
|
|
232
232
|
|
233
|
+
|
234
|
+
|
235
|
+
Heroku Postgresのアドオンは追加してます。
|
236
|
+
|
237
|
+
|
238
|
+
|
233
239
|
```
|
234
240
|
|
235
241
|
「$ heroku config」
|
6
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,23 +8,33 @@
|
|
8
8
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
N
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
11
|
+
「$ git push heroku master」実行後、「$ heroku logs --tail」にbrandsテーブルのデータがcreateされます。
|
12
|
+
|
13
|
+
その後クラッシュをして、リスタートを繰り返す動作が行われ、またクラッシュして処理が停止します。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
「$ heroku logs --tail」
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ブリングオンザノイズ"], ["created_at", "2021-09-08 04:58:21.721695"], ["updated_at", "2021-09-08 04:58:21.721695"]]
|
24
|
+
|
25
|
+
2021-09-08T04:58:21.725649+00:00 app[web.1]: D, [2021-09-08T04:58:21.725592 #4] DEBUG -- : (2.1ms) COMMIT
|
26
|
+
|
27
|
+
2021-09-08T04:58:21.726919+00:00 app[web.1]: D, [2021-09-08T04:58:21.726858 #4] DEBUG -- : (0.9ms) BEGIN
|
28
|
+
|
29
|
+
2021-09-08T04:58:21.728680+00:00 app[web.1]: D, [2021-09-08T04:58:21.728624 #4] DEBUG -- : Brand Create (1.1ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ブリングリーズ"], ["created_at", "2021-09-08 04:58:21.727072"], ["updated_at", "2021-09-08 04:58:21.727072"]]
|
30
|
+
|
31
|
+
2021-09-08T04:58:21.731126+00:00 app[web.1]: D, [2021-09-08T04:58:21.731069 #4] DEBUG -- : (2.2ms) COMMIT
|
32
|
+
|
33
|
+
2021-09-08T04:58:21.732338+00:00 app[web.1]: D, [2021-09-08T04:58:21.732289 #4] DEBUG -- : (1.0ms) BEGIN
|
34
|
+
|
35
|
+
2021-09-08T04:58:21.806319+00:00 heroku[web.1]: Process exited with status 137
|
36
|
+
|
37
|
+
2021-09-08T04:58:21.863194+00:00 heroku[web.1]: State changed from starting to crashed
|
28
38
|
|
29
39
|
```
|
30
40
|
|
@@ -36,11 +46,7 @@
|
|
36
46
|
|
37
47
|
```
|
38
48
|
|
39
|
-
|
49
|
+
|
40
|
-
|
41
|
-
remote: NoMethodError: undefined method `[]' for nil:NilClass
|
42
|
-
|
43
|
-
remote: /tmp/build_7ac349f8/config/initializers/carrierwave.rb:10:in `block in <top (required)>'
|
44
50
|
|
45
51
|
```
|
46
52
|
|
@@ -50,19 +56,21 @@
|
|
50
56
|
|
51
57
|
|
52
58
|
|
53
|
-
下記の記事を参考に進めました。
|
59
|
+
へロクのデプロイ時は、下記の記事を参考に進めました。
|
54
60
|
|
55
61
|
https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39
|
56
62
|
|
57
63
|
|
58
64
|
|
59
|
-
carrierwave.rbの10行目
|
65
|
+
「$ git push heroku master」を実行すると、carrierwave.rbの10行目で「NoMethodError: undefined method `[]' for nil:NilClass」となっていたので、確認して、とりあえずコメントアウトしました。
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
66
|
+
|
64
|
-
|
67
|
+
|
68
|
+
|
65
|
-
```
|
69
|
+
```
|
70
|
+
|
71
|
+
「config/initializers/carrierwave.rb」
|
72
|
+
|
73
|
+
|
66
74
|
|
67
75
|
8 # config.fog_credentials = {
|
68
76
|
|
@@ -86,23 +94,17 @@
|
|
86
94
|
|
87
95
|
へロクでのデプロイは完了したようです。その次にターミナルで
|
88
96
|
|
89
|
-
|
90
|
-
|
91
|
-
$ heroku run rails db:migrate
|
97
|
+
「$ heroku run rails db:migrate」
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
$ heroku run rails db:seed
|
96
98
|
|
97
99
|
を実行しました。
|
98
100
|
|
99
101
|
|
100
102
|
|
101
|
-
デプロイ先のアクセスするとApplication errorとなります。
|
103
|
+
デプロイ先のアクセスすると「Application error」となります。
|
102
|
-
|
103
|
-
|
104
|
-
|
104
|
+
|
105
|
+
|
106
|
+
|
105
|
-
$ heroku logs --tail
|
107
|
+
「$ heroku logs --tail」
|
106
108
|
|
107
109
|
で確認します。
|
108
110
|
|
@@ -110,6 +112,10 @@
|
|
110
112
|
|
111
113
|
```
|
112
114
|
|
115
|
+
「$ heroku logs --tail」
|
116
|
+
|
117
|
+
|
118
|
+
|
113
119
|
2021-09-06T08:13:05.144536+00:00 app[web.1]: D, [2021-09-06T08:13:05.144472 #4] DEBUG -- : Brand Create (1.2ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "プポン"], ["created_at", "2021-09-06 08:13:05.142655"], ["updated_at", "2021-09-06 08:13:05.142655"]]
|
114
120
|
|
115
121
|
2021-09-06T08:13:05.146993+00:00 app[web.1]: D, [2021-09-06T08:13:05.146921 #4] DEBUG -- : (2.1ms) COMMIT
|
@@ -126,41 +132,31 @@
|
|
126
132
|
|
127
133
|
|
128
134
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
D, [2021-09-0
|
150
|
-
|
151
|
-
D, [2021-09-0
|
152
|
-
|
153
|
-
D, [2021-09-0
|
154
|
-
|
155
|
-
D, [2021-09-06T10:43:36.239463 #4] DEBUG -- : Brand Create (1.0ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "88ズ"], ["created_at", "2021-09-06 10:43:36.238195"], ["updated_at", "2021-09-06 10:43:36.238195"]]
|
156
|
-
|
157
|
-
D, [2021-09-06T10:43:36.241423 #4] DEBUG -- : (1.8ms) COMMIT
|
158
|
-
|
159
|
-
D, [2021-09-06T10:43:36.242421 #4] DEBUG -- : (0.8ms) BEGIN
|
160
|
-
|
161
|
-
D, [2021-09-06T10:43:36.243848 #4] DEBUG -- : Brand Create (1.0ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "今すぐ無料ダウンロード!"], ["created_at", "2021-09-06 10:43:36.242577"], ["updated_at", "2021-09-06 10:43:36.242577"]]
|
162
|
-
|
163
|
-
D, [2021-09-06T10:43:36.248638 #4] DEBUG -- : (4.6ms) COMMIT
|
135
|
+
|
136
|
+
|
137
|
+
herokuコンソールを確認する
|
138
|
+
|
139
|
+
```
|
140
|
+
|
141
|
+
「$ heroku run rails c」
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
, "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "877*7(バナナセブン)"], ["created_at", "2021-09-07 02:54:29.591894"], ["updated_at", "2021-09-07 02:54:29.591894"]]
|
146
|
+
|
147
|
+
D, [2021-09-07T02:54:29.596148 #4] DEBUG -- : (2.2ms) COMMIT
|
148
|
+
|
149
|
+
D, [2021-09-07T02:54:29.597519 #4] DEBUG -- : (1.1ms) BEGIN
|
150
|
+
|
151
|
+
D, [2021-09-07T02:54:29.599375 #4] DEBUG -- : Brand Create (1.3ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "88ズ"], ["created_at", "2021-09-07 02:54:29.597724"], ["updated_at", "2021-09-07 02:54:29.597724"]]
|
152
|
+
|
153
|
+
D, [2021-09-07T02:54:29.601961 #4] DEBUG -- : (2.3ms) COMMIT
|
154
|
+
|
155
|
+
D, [2021-09-07T02:54:29.603413 #4] DEBUG -- : (1.1ms) BEGIN
|
156
|
+
|
157
|
+
D, [2021-09-07T02:54:29.605487 #4] DEBUG -- : Brand Create (1.3ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "今すぐ無料ダウンロード!"], ["created_at", "2021-09-07 02:54:29.603655"], ["updated_at", "2021-09-07 02:54:29.603655"]]
|
158
|
+
|
159
|
+
D, [2021-09-07T02:54:29.607946 #4] DEBUG -- : (2.2ms) COMMIT
|
164
160
|
|
165
161
|
Loading production environment (Rails 5.2.4.3)
|
166
162
|
|
@@ -168,123 +164,17 @@
|
|
168
164
|
|
169
165
|
```
|
170
166
|
|
171
|
-
と処理が途中で終わっている?状態となり、上の行でエラーは特にありませんでした。
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
heroku restart したあとに heroku logs --tail したログです。
|
176
|
-
|
177
|
-
```
|
178
|
-
|
179
|
-
2021-09-06T11:36:04.021940+00:00 app[web.1]: D, [2021-09-06T11:36:04.021878 #4] DEBUG -- : Brand Create (1.2ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ベリーニ"], ["created_at", "2021-09-06 11:36:04.020102"], ["updated_at", "2021-09-06 11:36:04.020102"]]
|
180
|
-
|
181
|
-
2021-09-06T11:36:04.024394+00:00 app[web.1]: D, [2021-09-06T11:36:04.024334 #4] DEBUG -- : (2.2ms) COMMIT
|
182
|
-
|
183
|
-
2021-09-06T11:36:04.025757+00:00 app[web.1]: D, [2021-09-06T11:36:04.025699 #4] DEBUG -- : (1.1ms) BEGIN
|
184
|
-
|
185
|
-
2021-09-06T11:36:04.089459+00:00 heroku[web.1]: Process exited with status 137
|
186
|
-
|
187
|
-
2021-09-06T11:36:04.159807+00:00 heroku[web.1]: State changed from starting to crashed
|
188
|
-
|
189
|
-
2021-09-06T11:36:06.298192+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pure-everglades-13947.herokuapp.com request_id=afe74ea9-22d4-485f-97ed-8fd3158cd170 fwd="106.181.68.116" dyno= connect= service= status=503 bytes= protocol=https
|
190
|
-
|
191
|
-
2021-09-06T11:36:06.836691+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=pure-everglades-13947.herokuapp.com request_id=b14e71c7-aef0-4936-8e9f-60fefa4aaf68 fwd="106.181.68.116" dyno= connect= service= status=503 bytes= protocol=https
|
192
|
-
|
193
|
-
2021-09-06T11:37:08.008989+00:00 app[api]: Starting process with command `rails c` by user sunagatheflame@gmail.com
|
194
|
-
|
195
|
-
2021-09-06T11:37:17.553339+00:00 heroku[run.1622]: Awaiting client
|
196
|
-
|
197
|
-
2021-09-06T11:37:17.576562+00:00 heroku[run.1622]: Starting process with command `rails c`
|
198
|
-
|
199
|
-
2021-09-06T11:37:17.585691+00:00 heroku[run.1622]: State changed from starting to up
|
200
|
-
|
201
|
-
2021-09-06T11:42:02.488392+00:00 heroku[run.1622]: Process exited with status 0
|
202
|
-
|
203
|
-
2021-09-06T11:42:02.585513+00:00 heroku[run.1622]: State changed from up to complete
|
204
|
-
|
205
|
-
```
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
再度、herokuのDBリセットと、db:migrate と db:seed を実行し、ログインするが、もちろん変わらず。
|
210
|
-
|
211
|
-
heroku pg:reset -a pure-everglades-13947
|
212
|
-
|
213
|
-
heroku run rails db:migrate
|
214
|
-
|
215
|
-
heroku run rails db:seed
|
216
|
-
|
217
|
-
heroku logs --tail
|
218
|
-
|
219
|
-
```
|
220
|
-
|
221
|
-
2021-09-07T02:43:48.739696+00:00 app[api]: Starting process with command `rails db:migrate` by user sunagatheflame@gmail.com
|
222
|
-
|
223
|
-
2021-09-07T02:43:57.772989+00:00 heroku[run.9797]: Awaiting client
|
224
|
-
|
225
|
-
2021-09-07T02:43:57.790256+00:00 heroku[run.9797]: Starting process with command `rails db:migrate`
|
226
|
-
|
227
|
-
2021-09-07T02:43:57.801991+00:00 heroku[run.9797]: State changed from starting to up
|
228
|
-
|
229
|
-
2021-09-07T02:44:05.561819+00:00 heroku[run.9797]: Process exited with status 0
|
230
|
-
|
231
|
-
2021-09-07T02:44:05.824234+00:00 heroku[run.9797]: State changed from up to complete
|
232
|
-
|
233
|
-
2021-09-07T02:48:10.667037+00:00 app[api]: Starting process with command `rails db:seed` by user sunagatheflame@gmail.com
|
234
|
-
|
235
|
-
2021-09-07T02:48:19.498467+00:00 heroku[run.7167]: Awaiting client
|
236
|
-
|
237
|
-
2021-09-07T02:48:19.513026+00:00 heroku[run.7167]: Starting process with command `rails db:seed`
|
238
|
-
|
239
|
-
2021-09-07T02:48:19.640113+00:00 heroku[run.7167]: State changed from starting to up
|
240
|
-
|
241
|
-
2021-09-07T02:48:26.307144+00:00 heroku[run.7167]: Process exited with status 0
|
242
|
-
|
243
|
-
2021-09-07T02:48:26.388082+00:00 heroku[run.7167]: State changed from up to complete
|
244
|
-
|
245
|
-
2021-09-07T02:51:22.523414+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pure-everglades-13947.herokuapp.com request_id=c1fd43ad-e11b-4ae0-8704-c1c34bab87e8 fwd="106.181.76.126" dyno= connect= service= status=503 bytes= protocol=https
|
246
|
-
|
247
|
-
```
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
コンソールを確認する
|
252
|
-
|
253
|
-
heroku run rails c
|
254
|
-
|
255
|
-
```
|
256
|
-
|
257
|
-
, "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "877*7(バナナセブン)"], ["created_at", "2021-09-07 02:54:29.591894"], ["updated_at", "2021-09-07 02:54:29.591894"]]
|
258
|
-
|
259
|
-
D, [2021-09-07T02:54:29.596148 #4] DEBUG -- : (2.2ms) COMMIT
|
260
|
-
|
261
|
-
D, [2021-09-07T02:54:29.597519 #4] DEBUG -- : (1.1ms) BEGIN
|
262
|
-
|
263
|
-
D, [2021-09-07T02:54:29.599375 #4] DEBUG -- : Brand Create (1.3ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "88ズ"], ["created_at", "2021-09-07 02:54:29.597724"], ["updated_at", "2021-09-07 02:54:29.597724"]]
|
264
|
-
|
265
|
-
D, [2021-09-07T02:54:29.601961 #4] DEBUG -- : (2.3ms) COMMIT
|
266
|
-
|
267
|
-
D, [2021-09-07T02:54:29.603413 #4] DEBUG -- : (1.1ms) BEGIN
|
268
|
-
|
269
|
-
D, [2021-09-07T02:54:29.605487 #4] DEBUG -- : Brand Create (1.3ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "今すぐ無料ダウンロード!"], ["created_at", "2021-09-07 02:54:29.603655"], ["updated_at", "2021-09-07 02:54:29.603655"]]
|
270
|
-
|
271
|
-
D, [2021-09-07T02:54:29.607946 #4] DEBUG -- : (2.2ms) COMMIT
|
272
|
-
|
273
|
-
Loading production environment (Rails 5.2.4.3)
|
274
|
-
|
275
|
-
[1] pry(main)>
|
276
|
-
|
277
|
-
```
|
278
|
-
|
279
167
|
|
280
168
|
|
281
169
|
上にある「今すぐ無料ダウンロード!」は、何故か、brand_seeds.rbに記載はなく、application.html.hamlにある
|
282
170
|
|
283
171
|
|
284
172
|
|
285
|
-
brand_seeds.rb
|
286
|
-
|
287
|
-
```
|
173
|
+
```
|
174
|
+
|
175
|
+
「brand_seeds.rb(末尾)」
|
176
|
+
|
177
|
+
|
288
178
|
|
289
179
|
{name: "877*7(バナナセブン)"},
|
290
180
|
|
@@ -296,9 +186,11 @@
|
|
296
186
|
|
297
187
|
|
298
188
|
|
299
|
-
application.html.haml
|
300
|
-
|
301
|
-
```
|
189
|
+
```
|
190
|
+
|
191
|
+
「application.html.haml」
|
192
|
+
|
193
|
+
|
302
194
|
|
303
195
|
= yield
|
304
196
|
|
@@ -328,7 +220,31 @@
|
|
328
220
|
|
329
221
|
|
330
222
|
|
331
|
-
予期せぬ
|
223
|
+
予期せぬバグが起きてます。
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
また、「$ git push heroku master」実行後、「$ heroku logs --tail」にbrandsテーブルのデータがcreateされます。
|
228
|
+
|
229
|
+
その後クラッシュをして、リスタートを繰り返す動作が行われ、またクラッシュして処理が停止します。
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
```
|
234
|
+
|
235
|
+
「$ heroku config」
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
=== pure-everglades-13947 Config Vars
|
240
|
+
|
241
|
+
DATABASE_URL: (既存)
|
242
|
+
|
243
|
+
HEROKU_POSTGRESQL_AMBER_URL: (追加済)
|
244
|
+
|
245
|
+
```
|
246
|
+
|
247
|
+
|
332
248
|
|
333
249
|
この状況から、抜け出す方法はありますでしょうか?
|
334
250
|
|
@@ -340,6 +256,12 @@
|
|
340
256
|
|
341
257
|
|
342
258
|
|
259
|
+
<githup>
|
260
|
+
|
261
|
+
https://github.com/Green604/freemarket_sample_70b
|
262
|
+
|
263
|
+
|
264
|
+
|
343
265
|
ruby '2.5.1'
|
344
266
|
|
345
267
|
gem 'rails', '~> 5.2.4', '>= 5.2.4.2'
|
5
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,34 +36,12 @@
|
|
36
36
|
|
37
37
|
```
|
38
38
|
|
39
|
-
remote: Bundle completed (248.16s)
|
40
|
-
|
41
|
-
remote: Cleaning up the bundler cache.
|
42
|
-
|
43
|
-
remote: -----> Installing node-v12.16.2-linux-x64
|
44
|
-
|
45
|
-
remote: -----> Detecting rake tasks
|
46
|
-
|
47
|
-
remote: -----> Preparing app for Rails asset pipeline
|
48
|
-
|
49
|
-
remote: Running: rake assets:precompile
|
50
|
-
|
51
39
|
remote: rake aborted!
|
52
40
|
|
53
41
|
remote: NoMethodError: undefined method `[]' for nil:NilClass
|
54
42
|
|
55
43
|
remote: /tmp/build_7ac349f8/config/initializers/carrierwave.rb:10:in `block in <top (required)>'
|
56
44
|
|
57
|
-
remote: /tmp/build_7ac349f8/vendor/bundle/ruby/2.5.0/gems/carrierwave-2.1.0/lib/carrierwave/uploader/configuration.rb:174:in `configure'
|
58
|
-
|
59
|
-
remote: /tmp/build_7ac349f8/vendor/bundle/ruby/2.5.0/gems/carrierwave-2.1.0/lib/carrierwave.rb:14:in `configure'
|
60
|
-
|
61
|
-
remote: /tmp/build_7ac349f8/config/initializers/carrierwave.rb:5:in `<top (required)>'
|
62
|
-
|
63
|
-
remote: /tmp/build_7ac349f8/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
|
64
|
-
|
65
|
-
remote: /tmp/build_7ac349f8/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
|
66
|
-
|
67
45
|
```
|
68
46
|
|
69
47
|
|
@@ -78,7 +56,7 @@
|
|
78
56
|
|
79
57
|
|
80
58
|
|
81
|
-
carrierwave.rbの10行目を確認して、とりあえず
|
59
|
+
carrierwave.rbの10行目を確認して、とりあえずコメントアウトしました。
|
82
60
|
|
83
61
|
|
84
62
|
|
@@ -86,12 +64,6 @@
|
|
86
64
|
|
87
65
|
```
|
88
66
|
|
89
|
-
5 # CarrierWave.configure do |config|
|
90
|
-
|
91
|
-
6 # config.storage = :fog
|
92
|
-
|
93
|
-
7 # config.fog_provider = 'fog/aws'
|
94
|
-
|
95
67
|
8 # config.fog_credentials = {
|
96
68
|
|
97
69
|
9 # provider: 'AWS',
|
@@ -108,17 +80,7 @@
|
|
108
80
|
|
109
81
|
15# }
|
110
82
|
|
111
|
-
16
|
112
|
-
|
113
|
-
17# config.fog_directory = 'freemarket70b2020'
|
114
|
-
|
115
|
-
18# config.asset_host = 'https://s3-ap-northeast-1.amazonaws.com/freemarket70b2020'
|
116
|
-
|
117
|
-
19# end
|
118
|
-
|
119
|
-
```
|
83
|
+
```
|
120
|
-
|
121
|
-
|
122
84
|
|
123
85
|
|
124
86
|
|
@@ -148,20 +110,6 @@
|
|
148
110
|
|
149
111
|
```
|
150
112
|
|
151
|
-
ands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "プニュズ"], ["created_at", "2021-09-06 08:13:05.130742"], ["updated_at", "2021-09-06 08:13:05.130742"]]
|
152
|
-
|
153
|
-
2021-09-06T08:13:05.135171+00:00 app[web.1]: D, [2021-09-06T08:13:05.135107 #4] DEBUG -- : (2.3ms) COMMIT
|
154
|
-
|
155
|
-
2021-09-06T08:13:05.135193+00:00 heroku[web.1]: Stopping process with SIGKILL
|
156
|
-
|
157
|
-
2021-09-06T08:13:05.136597+00:00 app[web.1]: D, [2021-09-06T08:13:05.136503 #4] DEBUG -- : (1.0ms) BEGIN
|
158
|
-
|
159
|
-
2021-09-06T08:13:05.138625+00:00 app[web.1]: D, [2021-09-06T08:13:05.138562 #4] DEBUG -- : Brand Create (1.2ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ププ"], ["created_at", "2021-09-06 08:13:05.136791"], ["updated_at", "2021-09-06 08:13:05.136791"]]
|
160
|
-
|
161
|
-
2021-09-06T08:13:05.141094+00:00 app[web.1]: D, [2021-09-06T08:13:05.141032 #4] DEBUG -- : (2.2ms) COMMIT
|
162
|
-
|
163
|
-
2021-09-06T08:13:05.142464+00:00 app[web.1]: D, [2021-09-06T08:13:05.142382 #4] DEBUG -- : (1.0ms) BEGIN
|
164
|
-
|
165
113
|
2021-09-06T08:13:05.144536+00:00 app[web.1]: D, [2021-09-06T08:13:05.144472 #4] DEBUG -- : Brand Create (1.2ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "プポン"], ["created_at", "2021-09-06 08:13:05.142655"], ["updated_at", "2021-09-06 08:13:05.142655"]]
|
166
114
|
|
167
115
|
2021-09-06T08:13:05.146993+00:00 app[web.1]: D, [2021-09-06T08:13:05.146921 #4] DEBUG -- : (2.1ms) COMMIT
|
@@ -198,12 +146,6 @@
|
|
198
146
|
|
199
147
|
```
|
200
148
|
|
201
|
-
D, [2021-09-06T10:43:36.224188 #4] DEBUG -- : Brand Create (1.0ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "7ユニオン"], ["created_at", "2021-09-06 10:43:36.222771"], ["updated_at", "2021-09-06 10:43:36.222771"]]
|
202
|
-
|
203
|
-
D, [2021-09-06T10:43:36.230796 #4] DEBUG -- : (6.4ms) COMMIT
|
204
|
-
|
205
|
-
D, [2021-09-06T10:43:36.231846 #4] DEBUG -- : (0.8ms) BEGIN
|
206
|
-
|
207
149
|
D, [2021-09-06T10:43:36.233965 #4] DEBUG -- : Brand Create (1.6ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "877*7(バナナセブン)"], ["created_at", "2021-09-06 10:43:36.232001"], ["updated_at", "2021-09-06 10:43:36.232001"]]
|
208
150
|
|
209
151
|
D, [2021-09-06T10:43:36.236364 #4] DEBUG -- : (2.2ms) COMMIT
|
@@ -234,12 +176,6 @@
|
|
234
176
|
|
235
177
|
```
|
236
178
|
|
237
|
-
2021-09-06T11:36:04.016121+00:00 app[web.1]: D, [2021-09-06T11:36:04.016047 #4] DEBUG -- : Brand Create (1.3ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ベリーナード"], ["created_at", "2021-09-06 11:36:04.013852"], ["updated_at", "2021-09-06 11:36:04.013852"]]
|
238
|
-
|
239
|
-
2021-09-06T11:36:04.018538+00:00 app[web.1]: D, [2021-09-06T11:36:04.018478 #4] DEBUG -- : (2.1ms) COMMIT
|
240
|
-
|
241
|
-
2021-09-06T11:36:04.019944+00:00 app[web.1]: D, [2021-09-06T11:36:04.019872 #4] DEBUG -- : (1.1ms) BEGIN
|
242
|
-
|
243
179
|
2021-09-06T11:36:04.021940+00:00 app[web.1]: D, [2021-09-06T11:36:04.021878 #4] DEBUG -- : Brand Create (1.2ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ベリーニ"], ["created_at", "2021-09-06 11:36:04.020102"], ["updated_at", "2021-09-06 11:36:04.020102"]]
|
244
180
|
|
245
181
|
2021-09-06T11:36:04.024394+00:00 app[web.1]: D, [2021-09-06T11:36:04.024334 #4] DEBUG -- : (2.2ms) COMMIT
|
@@ -268,6 +204,132 @@
|
|
268
204
|
|
269
205
|
```
|
270
206
|
|
207
|
+
|
208
|
+
|
209
|
+
再度、herokuのDBリセットと、db:migrate と db:seed を実行し、ログインするが、もちろん変わらず。
|
210
|
+
|
211
|
+
heroku pg:reset -a pure-everglades-13947
|
212
|
+
|
213
|
+
heroku run rails db:migrate
|
214
|
+
|
215
|
+
heroku run rails db:seed
|
216
|
+
|
217
|
+
heroku logs --tail
|
218
|
+
|
219
|
+
```
|
220
|
+
|
221
|
+
2021-09-07T02:43:48.739696+00:00 app[api]: Starting process with command `rails db:migrate` by user sunagatheflame@gmail.com
|
222
|
+
|
223
|
+
2021-09-07T02:43:57.772989+00:00 heroku[run.9797]: Awaiting client
|
224
|
+
|
225
|
+
2021-09-07T02:43:57.790256+00:00 heroku[run.9797]: Starting process with command `rails db:migrate`
|
226
|
+
|
227
|
+
2021-09-07T02:43:57.801991+00:00 heroku[run.9797]: State changed from starting to up
|
228
|
+
|
229
|
+
2021-09-07T02:44:05.561819+00:00 heroku[run.9797]: Process exited with status 0
|
230
|
+
|
231
|
+
2021-09-07T02:44:05.824234+00:00 heroku[run.9797]: State changed from up to complete
|
232
|
+
|
233
|
+
2021-09-07T02:48:10.667037+00:00 app[api]: Starting process with command `rails db:seed` by user sunagatheflame@gmail.com
|
234
|
+
|
235
|
+
2021-09-07T02:48:19.498467+00:00 heroku[run.7167]: Awaiting client
|
236
|
+
|
237
|
+
2021-09-07T02:48:19.513026+00:00 heroku[run.7167]: Starting process with command `rails db:seed`
|
238
|
+
|
239
|
+
2021-09-07T02:48:19.640113+00:00 heroku[run.7167]: State changed from starting to up
|
240
|
+
|
241
|
+
2021-09-07T02:48:26.307144+00:00 heroku[run.7167]: Process exited with status 0
|
242
|
+
|
243
|
+
2021-09-07T02:48:26.388082+00:00 heroku[run.7167]: State changed from up to complete
|
244
|
+
|
245
|
+
2021-09-07T02:51:22.523414+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pure-everglades-13947.herokuapp.com request_id=c1fd43ad-e11b-4ae0-8704-c1c34bab87e8 fwd="106.181.76.126" dyno= connect= service= status=503 bytes= protocol=https
|
246
|
+
|
247
|
+
```
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
コンソールを確認する
|
252
|
+
|
253
|
+
heroku run rails c
|
254
|
+
|
255
|
+
```
|
256
|
+
|
257
|
+
, "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "877*7(バナナセブン)"], ["created_at", "2021-09-07 02:54:29.591894"], ["updated_at", "2021-09-07 02:54:29.591894"]]
|
258
|
+
|
259
|
+
D, [2021-09-07T02:54:29.596148 #4] DEBUG -- : (2.2ms) COMMIT
|
260
|
+
|
261
|
+
D, [2021-09-07T02:54:29.597519 #4] DEBUG -- : (1.1ms) BEGIN
|
262
|
+
|
263
|
+
D, [2021-09-07T02:54:29.599375 #4] DEBUG -- : Brand Create (1.3ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "88ズ"], ["created_at", "2021-09-07 02:54:29.597724"], ["updated_at", "2021-09-07 02:54:29.597724"]]
|
264
|
+
|
265
|
+
D, [2021-09-07T02:54:29.601961 #4] DEBUG -- : (2.3ms) COMMIT
|
266
|
+
|
267
|
+
D, [2021-09-07T02:54:29.603413 #4] DEBUG -- : (1.1ms) BEGIN
|
268
|
+
|
269
|
+
D, [2021-09-07T02:54:29.605487 #4] DEBUG -- : Brand Create (1.3ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "今すぐ無料ダウンロード!"], ["created_at", "2021-09-07 02:54:29.603655"], ["updated_at", "2021-09-07 02:54:29.603655"]]
|
270
|
+
|
271
|
+
D, [2021-09-07T02:54:29.607946 #4] DEBUG -- : (2.2ms) COMMIT
|
272
|
+
|
273
|
+
Loading production environment (Rails 5.2.4.3)
|
274
|
+
|
275
|
+
[1] pry(main)>
|
276
|
+
|
277
|
+
```
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
上にある「今すぐ無料ダウンロード!」は、何故か、brand_seeds.rbに記載はなく、application.html.hamlにある
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
brand_seeds.rb
|
286
|
+
|
287
|
+
```
|
288
|
+
|
289
|
+
{name: "877*7(バナナセブン)"},
|
290
|
+
|
291
|
+
{name: "88ズ"}
|
292
|
+
|
293
|
+
])
|
294
|
+
|
295
|
+
```
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
application.html.haml
|
300
|
+
|
301
|
+
```
|
302
|
+
|
303
|
+
= yield
|
304
|
+
|
305
|
+
%aside.banner
|
306
|
+
|
307
|
+
.content
|
308
|
+
|
309
|
+
%h2.bannerText
|
310
|
+
|
311
|
+
だれでもかんたん、人生を変えるフリマアプリ
|
312
|
+
|
313
|
+
%p.bannerTitle
|
314
|
+
|
315
|
+
今すぐ無料ダウンロード!
|
316
|
+
|
317
|
+
.bannerApp
|
318
|
+
|
319
|
+
= link_to "https://www.apple.com/ios/app-store/" do
|
320
|
+
|
321
|
+
=image_tag "http://furima.tokyo/assets/app-store-9c5e28e8f81bd9912e0ded2f78821e04778a1356c05dc7c7bf1e88614be37c34.svg", width: "148", height: "43.84", class: 'app-a-icon'
|
322
|
+
|
323
|
+
= link_to "http://play.google.com/store/#?pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1" do
|
324
|
+
|
325
|
+
= image_tag "http://furima.tokyo/assets/google-play-469c63f1269e456307c4dde176b33cc3bbbbf142ac4d7369656010130149db1a.svg", width: "148", height: "43.84", class: 'app-g-icon'
|
326
|
+
|
327
|
+
```
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
予期せぬエラーが起きてます。
|
332
|
+
|
271
333
|
この状況から、抜け出す方法はありますでしょうか?
|
272
334
|
|
273
335
|
|
4
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -230,6 +230,44 @@
|
|
230
230
|
|
231
231
|
|
232
232
|
|
233
|
+
heroku restart したあとに heroku logs --tail したログです。
|
234
|
+
|
235
|
+
```
|
236
|
+
|
237
|
+
2021-09-06T11:36:04.016121+00:00 app[web.1]: D, [2021-09-06T11:36:04.016047 #4] DEBUG -- : Brand Create (1.3ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ベリーナード"], ["created_at", "2021-09-06 11:36:04.013852"], ["updated_at", "2021-09-06 11:36:04.013852"]]
|
238
|
+
|
239
|
+
2021-09-06T11:36:04.018538+00:00 app[web.1]: D, [2021-09-06T11:36:04.018478 #4] DEBUG -- : (2.1ms) COMMIT
|
240
|
+
|
241
|
+
2021-09-06T11:36:04.019944+00:00 app[web.1]: D, [2021-09-06T11:36:04.019872 #4] DEBUG -- : (1.1ms) BEGIN
|
242
|
+
|
243
|
+
2021-09-06T11:36:04.021940+00:00 app[web.1]: D, [2021-09-06T11:36:04.021878 #4] DEBUG -- : Brand Create (1.2ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ベリーニ"], ["created_at", "2021-09-06 11:36:04.020102"], ["updated_at", "2021-09-06 11:36:04.020102"]]
|
244
|
+
|
245
|
+
2021-09-06T11:36:04.024394+00:00 app[web.1]: D, [2021-09-06T11:36:04.024334 #4] DEBUG -- : (2.2ms) COMMIT
|
246
|
+
|
247
|
+
2021-09-06T11:36:04.025757+00:00 app[web.1]: D, [2021-09-06T11:36:04.025699 #4] DEBUG -- : (1.1ms) BEGIN
|
248
|
+
|
249
|
+
2021-09-06T11:36:04.089459+00:00 heroku[web.1]: Process exited with status 137
|
250
|
+
|
251
|
+
2021-09-06T11:36:04.159807+00:00 heroku[web.1]: State changed from starting to crashed
|
252
|
+
|
253
|
+
2021-09-06T11:36:06.298192+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pure-everglades-13947.herokuapp.com request_id=afe74ea9-22d4-485f-97ed-8fd3158cd170 fwd="106.181.68.116" dyno= connect= service= status=503 bytes= protocol=https
|
254
|
+
|
255
|
+
2021-09-06T11:36:06.836691+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=pure-everglades-13947.herokuapp.com request_id=b14e71c7-aef0-4936-8e9f-60fefa4aaf68 fwd="106.181.68.116" dyno= connect= service= status=503 bytes= protocol=https
|
256
|
+
|
257
|
+
2021-09-06T11:37:08.008989+00:00 app[api]: Starting process with command `rails c` by user sunagatheflame@gmail.com
|
258
|
+
|
259
|
+
2021-09-06T11:37:17.553339+00:00 heroku[run.1622]: Awaiting client
|
260
|
+
|
261
|
+
2021-09-06T11:37:17.576562+00:00 heroku[run.1622]: Starting process with command `rails c`
|
262
|
+
|
263
|
+
2021-09-06T11:37:17.585691+00:00 heroku[run.1622]: State changed from starting to up
|
264
|
+
|
265
|
+
2021-09-06T11:42:02.488392+00:00 heroku[run.1622]: Process exited with status 0
|
266
|
+
|
267
|
+
2021-09-06T11:42:02.585513+00:00 heroku[run.1622]: State changed from up to complete
|
268
|
+
|
269
|
+
```
|
270
|
+
|
233
271
|
この状況から、抜け出す方法はありますでしょうか?
|
234
272
|
|
235
273
|
|
3
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -146,8 +146,6 @@
|
|
146
146
|
|
147
147
|
|
148
148
|
|
149
|
-
下記エラーがわからず、詰まりました。
|
150
|
-
|
151
149
|
```
|
152
150
|
|
153
151
|
ands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "プニュズ"], ["created_at", "2021-09-06 08:13:05.130742"], ["updated_at", "2021-09-06 08:13:05.130742"]]
|
@@ -180,6 +178,62 @@
|
|
180
178
|
|
181
179
|
|
182
180
|
|
181
|
+
へロクの再起動を実施
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
heroku restart git:remote -a pure-everglades-13947
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
を実行して、リセット完了しましたが、エラーは解決されませんでした。
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
コンソールで確認しますと、最後の何行は下記のようになりました。
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
$ heroku run rails c
|
198
|
+
|
199
|
+
```
|
200
|
+
|
201
|
+
D, [2021-09-06T10:43:36.224188 #4] DEBUG -- : Brand Create (1.0ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "7ユニオン"], ["created_at", "2021-09-06 10:43:36.222771"], ["updated_at", "2021-09-06 10:43:36.222771"]]
|
202
|
+
|
203
|
+
D, [2021-09-06T10:43:36.230796 #4] DEBUG -- : (6.4ms) COMMIT
|
204
|
+
|
205
|
+
D, [2021-09-06T10:43:36.231846 #4] DEBUG -- : (0.8ms) BEGIN
|
206
|
+
|
207
|
+
D, [2021-09-06T10:43:36.233965 #4] DEBUG -- : Brand Create (1.6ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "877*7(バナナセブン)"], ["created_at", "2021-09-06 10:43:36.232001"], ["updated_at", "2021-09-06 10:43:36.232001"]]
|
208
|
+
|
209
|
+
D, [2021-09-06T10:43:36.236364 #4] DEBUG -- : (2.2ms) COMMIT
|
210
|
+
|
211
|
+
D, [2021-09-06T10:43:36.238068 #4] DEBUG -- : (1.5ms) BEGIN
|
212
|
+
|
213
|
+
D, [2021-09-06T10:43:36.239463 #4] DEBUG -- : Brand Create (1.0ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "88ズ"], ["created_at", "2021-09-06 10:43:36.238195"], ["updated_at", "2021-09-06 10:43:36.238195"]]
|
214
|
+
|
215
|
+
D, [2021-09-06T10:43:36.241423 #4] DEBUG -- : (1.8ms) COMMIT
|
216
|
+
|
217
|
+
D, [2021-09-06T10:43:36.242421 #4] DEBUG -- : (0.8ms) BEGIN
|
218
|
+
|
219
|
+
D, [2021-09-06T10:43:36.243848 #4] DEBUG -- : Brand Create (1.0ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "今すぐ無料ダウンロード!"], ["created_at", "2021-09-06 10:43:36.242577"], ["updated_at", "2021-09-06 10:43:36.242577"]]
|
220
|
+
|
221
|
+
D, [2021-09-06T10:43:36.248638 #4] DEBUG -- : (4.6ms) COMMIT
|
222
|
+
|
223
|
+
Loading production environment (Rails 5.2.4.3)
|
224
|
+
|
225
|
+
[1] pry(main)>
|
226
|
+
|
227
|
+
```
|
228
|
+
|
229
|
+
と処理が途中で終わっている?状態となり、上の行でエラーは特にありませんでした。
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
この状況から、抜け出す方法はありますでしょうか?
|
234
|
+
|
235
|
+
|
236
|
+
|
183
237
|
|
184
238
|
|
185
239
|
### 補足情報(FW/ツールのバージョンなど)
|
2
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,77 +34,7 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
```
|
37
|
+
```
|
38
|
-
|
39
|
-
remote: Installing gretel 3.0.9
|
40
|
-
|
41
|
-
remote: Installing kaminari-bootstrap 3.0.1
|
42
|
-
|
43
|
-
remote: Bundle complete! 51 Gemfile dependencies, 129 gems now installed.
|
44
|
-
|
45
|
-
remote: Gems in the groups 'development' and 'test' were not installed.
|
46
|
-
|
47
|
-
remote: Bundled gems are installed into `./vendor/bundle`
|
48
|
-
|
49
|
-
remote: Post-install message from i18n:
|
50
|
-
|
51
|
-
remote:
|
52
|
-
|
53
|
-
remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
|
54
|
-
|
55
|
-
remote: But that may break your application.
|
56
|
-
|
57
|
-
remote:
|
58
|
-
|
59
|
-
remote: If you are upgrading your Rails application from an older version of Rails:
|
60
|
-
|
61
|
-
remote:
|
62
|
-
|
63
|
-
remote: Please check your Rails app for 'config.i18n.fallbacks = true'.
|
64
|
-
|
65
|
-
remote: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
|
66
|
-
|
67
|
-
remote: 'config.i18n.fallbacks = [I18n.default_locale]'.
|
68
|
-
|
69
|
-
remote: If not, fallbacks will be broken in your app by I18n 1.1.x.
|
70
|
-
|
71
|
-
remote:
|
72
|
-
|
73
|
-
remote: If you are starting a NEW Rails application, you can ignore this notice.
|
74
|
-
|
75
|
-
remote:
|
76
|
-
|
77
|
-
remote: For more info see:
|
78
|
-
|
79
|
-
remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
|
80
|
-
|
81
|
-
remote:
|
82
|
-
|
83
|
-
remote: Post-install message from sass:
|
84
|
-
|
85
|
-
remote:
|
86
|
-
|
87
|
-
remote: Ruby Sass has reached end-of-life and should no longer be used.
|
88
|
-
|
89
|
-
remote:
|
90
|
-
|
91
|
-
remote: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
|
92
|
-
|
93
|
-
remote: primary implementation: https://sass-lang.com/install
|
94
|
-
|
95
|
-
remote:
|
96
|
-
|
97
|
-
remote: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
|
98
|
-
|
99
|
-
remote: sassc gem: https://github.com/sass/sassc-ruby#readme
|
100
|
-
|
101
|
-
remote:
|
102
|
-
|
103
|
-
remote: * For more details, please refer to the Sass blog:
|
104
|
-
|
105
|
-
remote: https://sass-lang.com/blog/posts/7828841
|
106
|
-
|
107
|
-
remote:
|
108
38
|
|
109
39
|
remote: Bundle completed (248.16s)
|
110
40
|
|
@@ -148,11 +78,107 @@
|
|
148
78
|
|
149
79
|
|
150
80
|
|
151
|
-
|
81
|
+
carrierwave.rbの10行目を確認して、とりあえず全てをコメントアウトしました。
|
152
82
|
|
153
|
-
rake aborted!
|
154
83
|
|
155
|
-
|
84
|
+
|
85
|
+
config/initializers/carrierwave.rb
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
5 # CarrierWave.configure do |config|
|
90
|
+
|
91
|
+
6 # config.storage = :fog
|
92
|
+
|
93
|
+
7 # config.fog_provider = 'fog/aws'
|
94
|
+
|
95
|
+
8 # config.fog_credentials = {
|
96
|
+
|
97
|
+
9 # provider: 'AWS',
|
98
|
+
|
99
|
+
10# aws_access_key_id: Rails.application.credentials.aws[:access_key_id],
|
100
|
+
|
101
|
+
11# # aws_access_key_id: Rails.application.secrets.aws_access_key_id,
|
102
|
+
|
103
|
+
12# aws_secret_access_key: Rails.application.credentials.aws[:secret_access_key],
|
104
|
+
|
105
|
+
13# # aws_secret_access_key: Rails.application.secrets.aws_secret_access_key,
|
106
|
+
|
107
|
+
14# region: 'ap-northeast-1'
|
108
|
+
|
109
|
+
15# }
|
110
|
+
|
111
|
+
16
|
112
|
+
|
113
|
+
17# config.fog_directory = 'freemarket70b2020'
|
114
|
+
|
115
|
+
18# config.asset_host = 'https://s3-ap-northeast-1.amazonaws.com/freemarket70b2020'
|
116
|
+
|
117
|
+
19# end
|
118
|
+
|
119
|
+
```
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
へロクでのデプロイは完了したようです。その次にターミナルで
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
$ heroku run rails db:migrate
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
$ heroku run rails db:seed
|
134
|
+
|
135
|
+
を実行しました。
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
デプロイ先のアクセスするとApplication errorとなります。
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
$ heroku logs --tail
|
144
|
+
|
145
|
+
で確認します。
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
下記エラーがわからず、詰まりました。
|
150
|
+
|
151
|
+
```
|
152
|
+
|
153
|
+
ands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "プニュズ"], ["created_at", "2021-09-06 08:13:05.130742"], ["updated_at", "2021-09-06 08:13:05.130742"]]
|
154
|
+
|
155
|
+
2021-09-06T08:13:05.135171+00:00 app[web.1]: D, [2021-09-06T08:13:05.135107 #4] DEBUG -- : (2.3ms) COMMIT
|
156
|
+
|
157
|
+
2021-09-06T08:13:05.135193+00:00 heroku[web.1]: Stopping process with SIGKILL
|
158
|
+
|
159
|
+
2021-09-06T08:13:05.136597+00:00 app[web.1]: D, [2021-09-06T08:13:05.136503 #4] DEBUG -- : (1.0ms) BEGIN
|
160
|
+
|
161
|
+
2021-09-06T08:13:05.138625+00:00 app[web.1]: D, [2021-09-06T08:13:05.138562 #4] DEBUG -- : Brand Create (1.2ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "ププ"], ["created_at", "2021-09-06 08:13:05.136791"], ["updated_at", "2021-09-06 08:13:05.136791"]]
|
162
|
+
|
163
|
+
2021-09-06T08:13:05.141094+00:00 app[web.1]: D, [2021-09-06T08:13:05.141032 #4] DEBUG -- : (2.2ms) COMMIT
|
164
|
+
|
165
|
+
2021-09-06T08:13:05.142464+00:00 app[web.1]: D, [2021-09-06T08:13:05.142382 #4] DEBUG -- : (1.0ms) BEGIN
|
166
|
+
|
167
|
+
2021-09-06T08:13:05.144536+00:00 app[web.1]: D, [2021-09-06T08:13:05.144472 #4] DEBUG -- : Brand Create (1.2ms) INSERT INTO "brands" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "プポン"], ["created_at", "2021-09-06 08:13:05.142655"], ["updated_at", "2021-09-06 08:13:05.142655"]]
|
168
|
+
|
169
|
+
2021-09-06T08:13:05.146993+00:00 app[web.1]: D, [2021-09-06T08:13:05.146921 #4] DEBUG -- : (2.1ms) COMMIT
|
170
|
+
|
171
|
+
2021-09-06T08:13:05.148439+00:00 app[web.1]: D, [2021-09-06T08:13:05.148373 #4] DEBUG -- : (1.1ms) BEGIN
|
172
|
+
|
173
|
+
2021-09-06T08:13:05.227852+00:00 heroku[web.1]: Process exited with status 137
|
174
|
+
|
175
|
+
2021-09-06T08:13:05.286688+00:00 heroku[web.1]: State changed from starting to crashed
|
176
|
+
|
177
|
+
2021-09-06T08:22:54.529477+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pure-everglades-13947.herokuapp.com request_id=f7d04755-a3a3-46ee-8edd-ffe9c1daf519 fwd="106.181.68.116" dyno= connect= service= status=503 bytes= protocol=https
|
178
|
+
|
179
|
+
```
|
180
|
+
|
181
|
+
|
156
182
|
|
157
183
|
|
158
184
|
|
1
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -148,17 +148,11 @@
|
|
148
148
|
|
149
149
|
|
150
150
|
|
151
|
-
|
151
|
+
下記エラーがどこに該当するかわからず詰まりました。
|
152
152
|
|
153
|
-
|
153
|
+
rake aborted!
|
154
154
|
|
155
|
-
>>リモート: 'config.i18n.fallbacks = [I18n.default_locale]'。
|
156
|
-
|
157
|
-
>>リモート:そうでない場合、フォールバックはI18n1.1.xによってアプリで中断されます
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
155
|
+
NoMethodError: undefined method `[]' for nil:NilClass
|
162
156
|
|
163
157
|
|
164
158
|
|