質問編集履歴

2

改善

2021/06/19 03:41

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -17,89 +17,3 @@
17
17
 
18
18
 
19
19
  ![![イメージ説明](9769651d8b83d9ae1641f811d1acd64f.png)](a495743a6ae4caa2dfac95e9d1aef18e.png)
20
-
21
-
22
-
23
- ### 試したこと
24
-
25
-
26
-
27
- - mysqlやNginxの再起動
28
-
29
-
30
-
31
- - config/application.rbに以下を追加
32
-
33
-
34
-
35
- ```
36
-
37
- config.action_controller.allow_forgery_protection = false
38
-
39
- ```
40
-
41
-
42
-
43
- ### AWSのログ
44
-
45
-
46
-
47
- ```
48
-
49
- [------- log]$ less production.log
50
-
51
- I, [2021-06-18T09:58:26.641757 #21174] INFO -- : Migrating to CreateTemplates (20210611130148)
52
-
53
- I, [2021-06-18T09:58:26.671608 #21174] INFO -- : Migrating to CreateCategories (20210611134440)
54
-
55
- I, [2021-06-18T09:58:26.702126 #21174] INFO -- : Migrating to CreateCategorizations (20210611163532)
56
-
57
- I, [2021-06-18T09:58:26.739921 #21174] INFO -- : Migrating to CreateUsers (20210612105003)
58
-
59
- I, [2021-06-18T09:58:26.766877 #21174] INFO -- : Migrating to AddRoleToUsers (20210612161936)
60
-
61
- I, [2021-06-18T09:58:26.805588 #21174] INFO -- : Migrating to CreateFeedbacks (20210615095501)
62
-
63
- I, [2021-06-18T09:58:26.831710 #21174] INFO -- : Migrating to AddUserIdToFeedbacks (20210615163837)
64
-
65
- I, [2021-06-18T09:58:26.909395 #21174] INFO -- : Migrating to CreateGuides (20210616140112)
66
-
67
- I, [2021-06-18T09:59:52.037403 #22352] INFO -- : [3a460031-adc9-451f-98ac-3aa9df8fe702] Started GET "/" for 126.125.146.189 at 2021-06-18 09:59:52 +0000
68
-
69
- I, [2021-06-18T09:59:52.041657 #22352] INFO -- : [3a460031-adc9-451f-98ac-3aa9df8fe702] Processing by TemplatesController#index as HTML
70
-
71
- I, [2021-06-18T09:59:52.073360 #22352] INFO -- : [3a460031-adc9-451f-98ac-3aa9df8fe702] Redirected to http://52.68.248.211/login
72
-
73
- I, [2021-06-18T09:59:52.073502 #22352] INFO -- : [3a460031-adc9-451f-98ac-3aa9df8fe702] Filter chain halted as :require_user_logged_in rendered or redirected
74
-
75
- I, [2021-06-18T09:59:52.073646 #22352] INFO -- : [3a460031-adc9-451f-98ac-3aa9df8fe702] Completed 302 Found in 32ms (ActiveRecord: 5.0ms | Allocations: 3822)
76
-
77
- I, [2021-06-18T09:59:52.105595 #22352] INFO -- : [ed6fc9ad-97e3-4961-9d4b-777c204e3596] Started GET "/login" for 126.125.146.189 at 2021-06-18 09:59:52 +0000
78
-
79
- I, [2021-06-18T09:59:52.107070 #22352] INFO -- : [ed6fc9ad-97e3-4961-9d4b-777c204e3596] Processing by SessionsController#new as HTML
80
-
81
- I, [2021-06-18T09:59:52.113726 #22352] INFO -- : [ed6fc9ad-97e3-4961-9d4b-777c204e3596] Rendered sessions/new.html.erb within layouts/application (Duration: 2.8ms | Allocations: 618)
82
-
83
- I, [2021-06-18T09:59:52.120401 #22352] INFO -- : [ed6fc9ad-97e3-4961-9d4b-777c204e3596] Rendered layout layouts/application.html.erb (Duration: 9.5ms | Allocations: 2998)
84
-
85
- I, [2021-06-18T09:59:52.120662 #22352] INFO -- : [ed6fc9ad-97e3-4961-9d4b-777c204e3596] Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.8ms | Allocations: 4385)
86
-
87
- I, [2021-06-18T10:15:14.124782 #22352] INFO -- : [8ee6ed9f-fa15-4e80-b3b9-89134b7d7661] Started GET "/" for 186.33.111.227 at 2021-06-18 10:15:14 +0000
88
-
89
- I, [2021-06-18T10:15:14.126501 #22352] INFO -- : [8ee6ed9f-fa15-4e80-b3b9-89134b7d7661] Processing by TemplatesController#index as HTML
90
-
91
- I, [2021-06-18T10:15:14.172261 #22352] INFO -- : [8ee6ed9f-fa15-4e80-b3b9-89134b7d7661] Redirected to http://52.68.248.211/login
92
-
93
- :
94
-
95
-
96
-
97
- ```
98
-
99
-
100
-
101
- ### 補足
102
-
103
-
104
-
105
- 初めてAWSにデプロイしたことから、まだ分からない部分も多くあるので、足りない情報などがあれば、教えて下さい。

1

説明のついか

2021/06/19 03:41

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -25,6 +25,18 @@
25
25
 
26
26
 
27
27
  - mysqlやNginxの再起動
28
+
29
+
30
+
31
+ - config/application.rbに以下を追加
32
+
33
+
34
+
35
+ ```
36
+
37
+ config.action_controller.allow_forgery_protection = false
38
+
39
+ ```
28
40
 
29
41
 
30
42