質問編集履歴
4
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -140,4 +140,20 @@
|
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
143
|
+
```
|
144
|
+
### registrations_controller
|
145
|
+
```
|
146
|
+
# The path used after sign up.
|
147
|
+
def after_sign_up_path_for(resource)
|
148
|
+
# super(resource)
|
149
|
+
edit_user_path(resource)
|
150
|
+
end
|
151
|
+
|
152
|
+
# The path used after sign up for inactive accounts.
|
153
|
+
def after_inactive_sign_up_path_for(resource)
|
154
|
+
# super(resource)
|
155
|
+
edit_user_path(resource)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
143
159
|
```
|
3
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -121,4 +121,23 @@
|
|
121
121
|
I, [2021-03-02T13:47:49.899307 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Rendered mainpages/index.html.erb within layouts/application (0.8ms)
|
122
122
|
I, [2021-03-02T13:47:49.900156 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Completed 200 OK in 2ms (Views: 1.9ms)
|
123
123
|
(END)
|
124
|
+
```
|
125
|
+
|
126
|
+
### 追記(application_controller.rb)
|
127
|
+
```
|
128
|
+
class ApplicationController < ActionController::Base
|
129
|
+
|
130
|
+
protect_from_forgery with: :exception
|
131
|
+
before_action :authenticate_user!
|
132
|
+
|
133
|
+
|
134
|
+
def after_sign_in_path_for(resource)
|
135
|
+
user_path(current_user) # ログイン後に遷移するpathを設定(ユーザーページへ遷移)
|
136
|
+
end
|
137
|
+
|
138
|
+
def after_sign_out_path_for(resource)
|
139
|
+
new_user_session_path # ログアウト後に遷移するpathを設定(ログインページへ遷移)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
124
143
|
```
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -75,9 +75,50 @@
|
|
75
75
|
[ec2-user@ip-172-31-36-245 log]$ ls
|
76
76
|
production.log unicorn.stderr.log unicorn.stdout.log
|
77
77
|
[ec2-user@ip-172-31-36-245 log]$ less production.log
|
78
|
+
I, [2021-03-02T12:54:12.635863 #25406] INFO -- : [09b69fd3-3895-4603-acc8-a57c9583c911] Started GET "/actuator/health" for 192.241.228.47 at 2021-03-02 12:54:12 +0000
|
78
|
-
.
|
79
|
+
F, [2021-03-02T12:54:12.636519 #25406] FATAL -- : [09b69fd3-3895-4603-acc8-a57c9583c911]
|
79
|
-
.
|
80
|
-
.
|
81
|
-
F, [2021-03-
|
80
|
+
F, [2021-03-02T12:54:12.636563 #25406] FATAL -- : [09b69fd3-3895-4603-acc8-a57c9583c911] ActionController::RoutingError (No route matches [GET] "/actuator/health"):
|
81
|
+
F, [2021-03-02T12:54:12.636591 #25406] FATAL -- : [09b69fd3-3895-4603-acc8-a57c9583c911]
|
82
|
+
F, [2021-03-02T12:54:12.636638 #25406] FATAL -- : [09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
|
83
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
|
84
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] railties (5.2.4.4) lib/rails/rack/logger.rb:38:in `call_app'
|
85
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] railties (5.2.4.4) lib/rails/rack/logger.rb:26:in `block in call'
|
86
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:71:in `block in tagged'
|
87
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:28:in `tagged'
|
88
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:71:in `tagged'
|
89
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] railties (5.2.4.4) lib/rails/rack/logger.rb:26:in `call'
|
90
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
|
91
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/request_id.rb:27:in `call'
|
92
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/method_override.rb:24:in `call'
|
93
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/runtime.rb:22:in `call'
|
94
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] activesupport (5.2.4.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
|
95
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
96
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/static.rb:127:in `call'
|
82
|
-
|
97
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
|
98
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] railties (5.2.4.4) lib/rails/engine.rb:524:in `call'
|
99
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
|
100
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/common_logger.rb:38:in `call'
|
101
|
+
[09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/chunked.rb:98:in `call'
|
102
|
+
I, [2021-03-02T13:45:58.189989 #25406] INFO -- : [592ce5e9-97bf-4a85-9601-c73eb4cf460f] Completed 200 OK in 2ms (Views: 1.8ms)
|
103
|
+
I, [2021-03-02T13:47:36.822221 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Started HEAD "/" for 111.7.96.133 at 2021-03-02 13:47:36 +0000
|
104
|
+
I, [2021-03-02T13:47:36.822912 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Processing by MainpagesController#index as HTML
|
105
|
+
I, [2021-03-02T13:47:36.823493 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Rendering mainpages/index.html.erb within layouts/application
|
106
|
+
I, [2021-03-02T13:47:36.824449 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Rendered mainpages/index.html.erb within layouts/application (0.9ms)
|
107
|
+
I, [2021-03-02T13:47:36.825194 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Completed 200 OK in 2ms (Views: 1.9ms)
|
108
|
+
I, [2021-03-02T13:47:38.516015 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Started GET "/" for 111.7.96.133 at 2021-03-02 13:47:38 +0000
|
109
|
+
I, [2021-03-02T13:47:38.516682 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Processing by MainpagesController#index as HTML
|
110
|
+
I, [2021-03-02T13:47:38.517266 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Rendering mainpages/index.html.erb within layouts/application
|
111
|
+
I, [2021-03-02T13:47:38.518047 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Rendered mainpages/index.html.erb within layouts/application (0.7ms)
|
112
|
+
I, [2021-03-02T13:47:38.518842 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Completed 200 OK in 2ms (Views: 1.7ms)
|
113
|
+
I, [2021-03-02T13:47:47.797114 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Started HEAD "/" for 111.7.96.133 at 2021-03-02 13:47:47 +0000
|
114
|
+
I, [2021-03-02T13:47:47.797820 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Processing by MainpagesController#index as HTML
|
115
|
+
I, [2021-03-02T13:47:47.798426 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Rendering mainpages/index.html.erb within layouts/application
|
116
|
+
I, [2021-03-02T13:47:47.799358 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Rendered mainpages/index.html.erb within layouts/application (0.9ms)
|
117
|
+
I, [2021-03-02T13:47:47.800210 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Completed 200 OK in 2ms (Views: 1.9ms)
|
118
|
+
I, [2021-03-02T13:47:49.896994 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Started GET "/" for 111.7.96.133 at 2021-03-02 13:47:49 +0000
|
119
|
+
I, [2021-03-02T13:47:49.897758 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Processing by MainpagesController#index as HTML
|
120
|
+
I, [2021-03-02T13:47:49.898402 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Rendering mainpages/index.html.erb within layouts/application
|
121
|
+
I, [2021-03-02T13:47:49.899307 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Rendered mainpages/index.html.erb within layouts/application (0.8ms)
|
122
|
+
I, [2021-03-02T13:47:49.900156 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Completed 200 OK in 2ms (Views: 1.9ms)
|
123
|
+
(END)
|
83
124
|
```
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -65,4 +65,19 @@
|
|
65
65
|
ruby 2.5.1
|
66
66
|
AWS
|
67
67
|
EC2
|
68
|
-
capistrano
|
68
|
+
capistrano
|
69
|
+
|
70
|
+
### 追記(直近のエラーログです)
|
71
|
+
```
|
72
|
+
[ec2-user@ip-172-31-36-245 ~]$ cd /var/www/git_toreka
|
73
|
+
[ec2-user@ip-172-31-36-245 git_toreka]$ cd current
|
74
|
+
[ec2-user@ip-172-31-36-245 current]$ cd log
|
75
|
+
[ec2-user@ip-172-31-36-245 log]$ ls
|
76
|
+
production.log unicorn.stderr.log unicorn.stdout.log
|
77
|
+
[ec2-user@ip-172-31-36-245 log]$ less production.log
|
78
|
+
.
|
79
|
+
.
|
80
|
+
.
|
81
|
+
F, [2021-03-02T11:16:03.099850 #25406] FATAL -- : [e0d66c55-8d34-40df-82dd-52d0fdace71f] ActionController::RoutingError (No route matc
|
82
|
+
hes [GET] "/cgi-bin/config.exp"):
|
83
|
+
```
|