質問編集履歴

4

追記

2021/03/03 00:00

投稿

yastinbieber
yastinbieber

スコア49

test CHANGED
File without changes
test CHANGED
@@ -283,3 +283,35 @@
283
283
 
284
284
 
285
285
  ```
286
+
287
+ ### registrations_controller
288
+
289
+ ```
290
+
291
+ # The path used after sign up.
292
+
293
+ def after_sign_up_path_for(resource)
294
+
295
+ # super(resource)
296
+
297
+ edit_user_path(resource)
298
+
299
+ end
300
+
301
+
302
+
303
+ # The path used after sign up for inactive accounts.
304
+
305
+ def after_inactive_sign_up_path_for(resource)
306
+
307
+ # super(resource)
308
+
309
+ edit_user_path(resource)
310
+
311
+ end
312
+
313
+ end
314
+
315
+
316
+
317
+ ```

3

追記

2021/03/03 00:00

投稿

yastinbieber
yastinbieber

スコア49

test CHANGED
File without changes
test CHANGED
@@ -245,3 +245,41 @@
245
245
  (END)
246
246
 
247
247
  ```
248
+
249
+
250
+
251
+ ### 追記(application_controller.rb)
252
+
253
+ ```
254
+
255
+ class ApplicationController < ActionController::Base
256
+
257
+
258
+
259
+ protect_from_forgery with: :exception
260
+
261
+ before_action :authenticate_user!
262
+
263
+
264
+
265
+
266
+
267
+ def after_sign_in_path_for(resource)
268
+
269
+ user_path(current_user) # ログイン後に遷移するpathを設定(ユーザーページへ遷移)
270
+
271
+ end
272
+
273
+
274
+
275
+ def after_sign_out_path_for(resource)
276
+
277
+ new_user_session_path # ログアウト後に遷移するpathを設定(ログインページへ遷移)
278
+
279
+ end
280
+
281
+ end
282
+
283
+
284
+
285
+ ```

2

追記

2021/03/02 23:57

投稿

yastinbieber
yastinbieber

スコア49

test CHANGED
File without changes
test CHANGED
@@ -152,14 +152,96 @@
152
152
 
153
153
  [ec2-user@ip-172-31-36-245 log]$ less production.log
154
154
 
155
+ 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
156
+
155
- .
157
+ F, [2021-03-02T12:54:12.636519 #25406] FATAL -- : [09b69fd3-3895-4603-acc8-a57c9583c911]
156
-
157
- .
158
+
158
-
159
- .
160
-
161
- F, [2021-03-02T11:16:03.099850 #25406] FATAL -- : [e0d66c55-8d34-40df-82dd-52d0fdace71f] ActionController::RoutingError (No route matc
159
+ F, [2021-03-02T12:54:12.636563 #25406] FATAL -- : [09b69fd3-3895-4603-acc8-a57c9583c911] ActionController::RoutingError (No route matches [GET] "/actuator/health"):
160
+
162
-
161
+ F, [2021-03-02T12:54:12.636591 #25406] FATAL -- : [09b69fd3-3895-4603-acc8-a57c9583c911]
162
+
163
+ 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'
164
+
165
+ [09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
166
+
167
+ [09b69fd3-3895-4603-acc8-a57c9583c911] railties (5.2.4.4) lib/rails/rack/logger.rb:38:in `call_app'
168
+
169
+ [09b69fd3-3895-4603-acc8-a57c9583c911] railties (5.2.4.4) lib/rails/rack/logger.rb:26:in `block in call'
170
+
171
+ [09b69fd3-3895-4603-acc8-a57c9583c911] activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:71:in `block in tagged'
172
+
173
+ [09b69fd3-3895-4603-acc8-a57c9583c911] activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:28:in `tagged'
174
+
175
+ [09b69fd3-3895-4603-acc8-a57c9583c911] activesupport (5.2.4.4) lib/active_support/tagged_logging.rb:71:in `tagged'
176
+
177
+ [09b69fd3-3895-4603-acc8-a57c9583c911] railties (5.2.4.4) lib/rails/rack/logger.rb:26:in `call'
178
+
179
+ [09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
180
+
181
+ [09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/request_id.rb:27:in `call'
182
+
183
+ [09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/method_override.rb:24:in `call'
184
+
185
+ [09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/runtime.rb:22:in `call'
186
+
187
+ [09b69fd3-3895-4603-acc8-a57c9583c911] activesupport (5.2.4.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
188
+
189
+ [09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
190
+
191
+ [09b69fd3-3895-4603-acc8-a57c9583c911] actionpack (5.2.4.4) lib/action_dispatch/middleware/static.rb:127:in `call'
192
+
163
- hes [GET] "/cgi-bin/config.exp"):
193
+ [09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
194
+
164
-
195
+ [09b69fd3-3895-4603-acc8-a57c9583c911] railties (5.2.4.4) lib/rails/engine.rb:524:in `call'
196
+
197
+ [09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
198
+
199
+ [09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/common_logger.rb:38:in `call'
200
+
201
+ [09b69fd3-3895-4603-acc8-a57c9583c911] rack (2.2.3) lib/rack/chunked.rb:98:in `call'
202
+
203
+ I, [2021-03-02T13:45:58.189989 #25406] INFO -- : [592ce5e9-97bf-4a85-9601-c73eb4cf460f] Completed 200 OK in 2ms (Views: 1.8ms)
204
+
205
+ 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
206
+
207
+ I, [2021-03-02T13:47:36.822912 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Processing by MainpagesController#index as HTML
208
+
209
+ I, [2021-03-02T13:47:36.823493 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Rendering mainpages/index.html.erb within layouts/application
210
+
211
+ I, [2021-03-02T13:47:36.824449 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Rendered mainpages/index.html.erb within layouts/application (0.9ms)
212
+
213
+ I, [2021-03-02T13:47:36.825194 #25406] INFO -- : [01fb163f-e7f2-4798-a2a7-16add7f15ef8] Completed 200 OK in 2ms (Views: 1.9ms)
214
+
215
+ 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
216
+
217
+ I, [2021-03-02T13:47:38.516682 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Processing by MainpagesController#index as HTML
218
+
219
+ I, [2021-03-02T13:47:38.517266 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Rendering mainpages/index.html.erb within layouts/application
220
+
221
+ I, [2021-03-02T13:47:38.518047 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Rendered mainpages/index.html.erb within layouts/application (0.7ms)
222
+
223
+ I, [2021-03-02T13:47:38.518842 #25406] INFO -- : [11122505-96d7-4e3d-97f3-e36db8df366a] Completed 200 OK in 2ms (Views: 1.7ms)
224
+
225
+ 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
226
+
227
+ I, [2021-03-02T13:47:47.797820 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Processing by MainpagesController#index as HTML
228
+
229
+ I, [2021-03-02T13:47:47.798426 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Rendering mainpages/index.html.erb within layouts/application
230
+
231
+ I, [2021-03-02T13:47:47.799358 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Rendered mainpages/index.html.erb within layouts/application (0.9ms)
232
+
233
+ I, [2021-03-02T13:47:47.800210 #25406] INFO -- : [1bda28d7-64c6-4d6c-8dd1-e3ed72af6d85] Completed 200 OK in 2ms (Views: 1.9ms)
234
+
235
+ 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
236
+
237
+ I, [2021-03-02T13:47:49.897758 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Processing by MainpagesController#index as HTML
238
+
239
+ I, [2021-03-02T13:47:49.898402 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Rendering mainpages/index.html.erb within layouts/application
240
+
241
+ I, [2021-03-02T13:47:49.899307 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Rendered mainpages/index.html.erb within layouts/application (0.8ms)
242
+
243
+ I, [2021-03-02T13:47:49.900156 #25406] INFO -- : [1ede6649-3b94-4754-85b5-418f4e23a7ac] Completed 200 OK in 2ms (Views: 1.9ms)
244
+
245
+ (END)
246
+
165
- ```
247
+ ```

1

追記

2021/03/02 14:30

投稿

yastinbieber
yastinbieber

スコア49

test CHANGED
File without changes
test CHANGED
@@ -133,3 +133,33 @@
133
133
  EC2
134
134
 
135
135
  capistrano
136
+
137
+
138
+
139
+ ### 追記(直近のエラーログです)
140
+
141
+ ```
142
+
143
+ [ec2-user@ip-172-31-36-245 ~]$ cd /var/www/git_toreka
144
+
145
+ [ec2-user@ip-172-31-36-245 git_toreka]$ cd current
146
+
147
+ [ec2-user@ip-172-31-36-245 current]$ cd log
148
+
149
+ [ec2-user@ip-172-31-36-245 log]$ ls
150
+
151
+ production.log unicorn.stderr.log unicorn.stdout.log
152
+
153
+ [ec2-user@ip-172-31-36-245 log]$ less production.log
154
+
155
+ .
156
+
157
+ .
158
+
159
+ .
160
+
161
+ F, [2021-03-02T11:16:03.099850 #25406] FATAL -- : [e0d66c55-8d34-40df-82dd-52d0fdace71f] ActionController::RoutingError (No route matc
162
+
163
+ hes [GET] "/cgi-bin/config.exp"):
164
+
165
+ ```