質問編集履歴
3
追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails,awsでアプリが表示がされない
|
1
|
+
rails,awsでアプリが表示がされない ActionView::Template::Error (Webpacker can't find application...
|
test
CHANGED
@@ -372,6 +372,104 @@
|
|
372
372
|
|
373
373
|
```
|
374
374
|
|
375
|
-
|
376
|
-
|
377
375
|
よろしくお願いします。
|
376
|
+
|
377
|
+
-------
|
378
|
+
|
379
|
+
追記
|
380
|
+
|
381
|
+
log/production.log を確認すると、下記のログがありました。
|
382
|
+
|
383
|
+
```
|
384
|
+
|
385
|
+
I, [2020-09-13T10:58:32.855259 #3813] INFO -- : [84cb50a5-8fa2-4e16-8738-8a562cd02d2d] Completed 500 Internal Server Error in 77ms (ActiveRecord: 28.3ms | Allocations: 3110)
|
386
|
+
|
387
|
+
F, [2020-09-13T10:58:32.856049 #3813] FATAL -- : [84cb50a5-8fa2-4e16-8738-8a562cd02d2d]
|
388
|
+
|
389
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] ActionView::Template::Error (Webpacker can't find application in /var/www/rails/sampleapp/public/packs/manifest.json. Possible causes:
|
390
|
+
|
391
|
+
1. You want to set webpacker.yml value of compile to true for your environment
|
392
|
+
|
393
|
+
unless you are using the `webpack -w` or the webpack-dev-server.
|
394
|
+
|
395
|
+
2. webpack has not yet re-run to reflect updates.
|
396
|
+
|
397
|
+
3. You have misconfigured Webpacker's config/webpacker.yml file.
|
398
|
+
|
399
|
+
4. Your webpack configuration is not creating a manifest.
|
400
|
+
|
401
|
+
Your manifest contains:
|
402
|
+
|
403
|
+
{
|
404
|
+
|
405
|
+
"application.js": "/packs/js/application-0cd310e1e6d4680125d7.js",
|
406
|
+
|
407
|
+
"application.js.map": "/packs/js/application-0cd310e1e6d4680125d7.js.map",
|
408
|
+
|
409
|
+
"entrypoints": {
|
410
|
+
|
411
|
+
"application": {
|
412
|
+
|
413
|
+
"js": [
|
414
|
+
|
415
|
+
"/packs/js/application-0cd310e1e6d4680125d7.js"
|
416
|
+
|
417
|
+
],
|
418
|
+
|
419
|
+
"js.map": [
|
420
|
+
|
421
|
+
"/packs/js/application-0cd310e1e6d4680125d7.js.map"
|
422
|
+
|
423
|
+
]
|
424
|
+
|
425
|
+
},
|
426
|
+
|
427
|
+
"hello_erb": {
|
428
|
+
|
429
|
+
"js": [
|
430
|
+
|
431
|
+
"/packs/js/hello_erb-75c67bbd677ae5fe6388.js"
|
432
|
+
|
433
|
+
],
|
434
|
+
|
435
|
+
"js.map": [
|
436
|
+
|
437
|
+
"/packs/js/hello_erb-75c67bbd677ae5fe6388.js.map"
|
438
|
+
|
439
|
+
]
|
440
|
+
|
441
|
+
}
|
442
|
+
|
443
|
+
},
|
444
|
+
|
445
|
+
"hello_erb.js": "/packs/js/hello_erb-75c67bbd677ae5fe6388.js",
|
446
|
+
|
447
|
+
"hello_erb.js.map": "/packs/js/hello_erb-75c67bbd677ae5fe6388.js.map",
|
448
|
+
|
449
|
+
"media/images/awdcar.png": "/packs/media/images/awdcar-0b68898bf812c7efb6ac361a17c493dc.png"
|
450
|
+
|
451
|
+
}
|
452
|
+
|
453
|
+
):
|
454
|
+
|
455
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] 3: <%= csrf_meta_tags %>
|
456
|
+
|
457
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] 4: <%= csp_meta_tag %>
|
458
|
+
|
459
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] 5:
|
460
|
+
|
461
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] 6: <%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
462
|
+
|
463
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] 7: <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
464
|
+
|
465
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] 8: <!--[if lt IE 9]>
|
466
|
+
|
467
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] 9: <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/r29/html5.min.js">
|
468
|
+
|
469
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d]
|
470
|
+
|
471
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] app/views/layouts/_head.html.erb:6
|
472
|
+
|
473
|
+
[84cb50a5-8fa2-4e16-8738-8a562cd02d2d] app/views/layouts/application.html.erb:3
|
474
|
+
|
475
|
+
```
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -198,4 +198,180 @@
|
|
198
198
|
|
199
199
|
```
|
200
200
|
|
201
|
+
$ curl http://ipアドレス/ コマンドを行った結果が下記になります。(役に立つか分かりませんが、、
|
202
|
+
|
203
|
+
```
|
204
|
+
|
205
|
+
* Trying EIP...
|
206
|
+
|
207
|
+
* TCP_NODELAY set
|
208
|
+
|
209
|
+
* Connected to EIP (EIP) port 80 (#0)
|
210
|
+
|
211
|
+
> GET / HTTP/1.1
|
212
|
+
|
213
|
+
> Host: EIP
|
214
|
+
|
215
|
+
> User-Agent: curl/7.61.1
|
216
|
+
|
217
|
+
> Accept: */*
|
218
|
+
|
219
|
+
>
|
220
|
+
|
221
|
+
< HTTP/1.1 500 Internal Server Error
|
222
|
+
|
223
|
+
< Server: nginx/1.16.1
|
224
|
+
|
225
|
+
< Date: Sun, 13 Sep 2020 09:01:43 GMT
|
226
|
+
|
227
|
+
< Content-Type: text/html; charset=UTF-8
|
228
|
+
|
229
|
+
< Content-Length: 1635
|
230
|
+
|
231
|
+
< Connection: keep-alive
|
232
|
+
|
233
|
+
< X-Request-Id: 18b9bd2a-38dd-4abe-88c5-7d8d938e5eb7
|
234
|
+
|
235
|
+
< X-Runtime: 0.111743
|
236
|
+
|
237
|
+
<
|
238
|
+
|
239
|
+
<!DOCTYPE html>
|
240
|
+
|
241
|
+
<html>
|
242
|
+
|
243
|
+
<head>
|
244
|
+
|
245
|
+
<title>We're sorry, but something went wrong (500)</title>
|
246
|
+
|
247
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
248
|
+
|
249
|
+
<style>
|
250
|
+
|
251
|
+
.rails-default-error-page {
|
252
|
+
|
253
|
+
background-color: #EFEFEF;
|
254
|
+
|
255
|
+
color: #2E2F30;
|
256
|
+
|
257
|
+
text-align: center;
|
258
|
+
|
259
|
+
font-family: arial, sans-serif;
|
260
|
+
|
261
|
+
margin: 0;
|
262
|
+
|
263
|
+
}
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
.rails-default-error-page div.dialog {
|
268
|
+
|
269
|
+
width: 95%;
|
270
|
+
|
271
|
+
max-width: 33em;
|
272
|
+
|
273
|
+
margin: 4em auto 0;
|
274
|
+
|
275
|
+
}
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
.rails-default-error-page div.dialog > div {
|
280
|
+
|
281
|
+
border: 1px solid #CCC;
|
282
|
+
|
283
|
+
border-right-color: #999;
|
284
|
+
|
285
|
+
border-left-color: #999;
|
286
|
+
|
287
|
+
border-bottom-color: #BBB;
|
288
|
+
|
289
|
+
border-top: #B00100 solid 4px;
|
290
|
+
|
291
|
+
border-top-left-radius: 9px;
|
292
|
+
|
293
|
+
border-top-right-radius: 9px;
|
294
|
+
|
295
|
+
background-color: white;
|
296
|
+
|
297
|
+
padding: 7px 12% 0;
|
298
|
+
|
299
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
300
|
+
|
301
|
+
}
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
.rails-default-error-page h1 {
|
306
|
+
|
307
|
+
font-size: 100%;
|
308
|
+
|
309
|
+
color: #730E15;
|
310
|
+
|
311
|
+
line-height: 1.5em;
|
312
|
+
|
313
|
+
}
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
.rails-default-error-page div.dialog > p {
|
318
|
+
|
319
|
+
margin: 0 0 1em;
|
320
|
+
|
321
|
+
padding: 1em;
|
322
|
+
|
323
|
+
background-color: #F7F7F7;
|
324
|
+
|
325
|
+
border: 1px solid #CCC;
|
326
|
+
|
327
|
+
border-right-color: #999;
|
328
|
+
|
329
|
+
border-left-color: #999;
|
330
|
+
|
331
|
+
border-bottom-color: #999;
|
332
|
+
|
333
|
+
border-bottom-left-radius: 4px;
|
334
|
+
|
335
|
+
border-bottom-right-radius: 4px;
|
336
|
+
|
337
|
+
border-top-color: #DADADA;
|
338
|
+
|
339
|
+
color: #666;
|
340
|
+
|
341
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
342
|
+
|
343
|
+
}
|
344
|
+
|
345
|
+
</style>
|
346
|
+
|
347
|
+
</head>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
<body class="rails-default-error-page">
|
352
|
+
|
353
|
+
<!-- This file lives in public/500.html -->
|
354
|
+
|
355
|
+
<div class="dialog">
|
356
|
+
|
357
|
+
<div>
|
358
|
+
|
359
|
+
<h1>We're sorry, but something went wrong.</h1>
|
360
|
+
|
361
|
+
</div>
|
362
|
+
|
363
|
+
<p>If you are the application owner check the logs for more information.</p>
|
364
|
+
|
365
|
+
</div>
|
366
|
+
|
367
|
+
</body>
|
368
|
+
|
369
|
+
</html>
|
370
|
+
|
371
|
+
* Connection #0 to host 54.168.30.111 left intact
|
372
|
+
|
373
|
+
```
|
374
|
+
|
375
|
+
|
376
|
+
|
201
377
|
よろしくお願いします。
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -148,7 +148,7 @@
|
|
148
148
|
|
149
149
|
`nginx`
|
150
150
|
|
151
|
-
```
|
151
|
+
```
|
152
152
|
|
153
153
|
error_log /var/www/rails/sampleapp/log/nginx.error.log;
|
154
154
|
|