質問編集履歴

5

エラーメッセージ追記

2018/07/09 04:56

投稿

koichi8888
koichi8888

スコア24

test CHANGED
File without changes
test CHANGED
@@ -39,6 +39,10 @@
39
39
 
40
40
 
41
41
  ### 発生している問題・エラーメッセージ
42
+
43
+ /public/index.htmlをリネームした際に発生
44
+
45
+ ⇒public配下のindex.htmlの読み込みがview内のindex.htmlより、優先されて可能性を確認するため。
42
46
 
43
47
  /var/log/httpd/error_log
44
48
 

4

補足情報追加

2018/07/09 04:56

投稿

koichi8888
koichi8888

スコア24

test CHANGED
File without changes
test CHANGED
@@ -95,3 +95,5 @@
95
95
  DB : MySQL 5.6
96
96
 
97
97
  ruby:2.3.7
98
+
99
+ Phusion Passenger: 5.3.3

3

タイトル誤字削除

2018/07/09 04:53

投稿

koichi8888
koichi8888

スコア24

test CHANGED
@@ -1 +1 @@
1
- rails4で開発環境から本番環境に移行できない
1
+ rails4で開発環境から本番環境に移行できない
test CHANGED
File without changes

2

エラーメッセージ、試したことを追加

2018/07/09 04:46

投稿

koichi8888
koichi8888

スコア24

test CHANGED
@@ -1 +1 @@
1
- rails4で開発環境から本番環境に移行できない
1
+ rails4で開発環境から本番環境に移行できない
test CHANGED
@@ -38,6 +38,38 @@
38
38
 
39
39
 
40
40
 
41
+ ### 発生している問題・エラーメッセージ
42
+
43
+ /var/log/httpd/error_log
44
+
45
+ ```
46
+
47
+ [ W 2018-07-09 12:30:30.8573 1717/T7 age/Cor/Con/InternalUtils.cpp:96 ]: [Client 1-10] Sending 502 response: application did not send a complete response
48
+
49
+ App 2832 output: [ 2018-07-09 12:30:40.3155 2832/0x00007f09d28a2770(Worker 1) utils.rb ]: *** Exception RuntimeError in Rack application object (Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml`) (process 2832, thread 0x00007f09d28a2770(Worker 1)):
50
+
51
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.9/lib/rails/application.rb:534:in `validate_secret_key_config!'
52
+
53
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.9/lib/rails/application.rb:246:in `env_config'
54
+
55
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:514:in `call'
56
+
57
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.9/lib/rails/application.rb:165:in `call'
58
+
59
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.3.3/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
60
+
61
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.3.3/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'
62
+
63
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.3.3/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
64
+
65
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.3.3/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in `block (3 levels) in start_threads'
66
+
67
+ App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.3.3/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
68
+
69
+ [ W 2018-07-09 12:30:40.3159 1717/T7 age/Cor/Con/InternalUtils.cpp:96 ]: [Client 1-11] Sending 502 response: application did not send a complete response
70
+
71
+ ```
72
+
41
73
 
42
74
 
43
75
  ### 試したこと
@@ -46,7 +78,7 @@
46
78
 
47
79
  ・rails routesでルーティングの設定は開発環境と同じように設定されていることを確認
48
80
 
49
- ・public/index.htmlをリネームし、view内のファイルを表示させようとしたところ、Incomplete response received from applicationと表示されてしま
81
+ ・public/index.htmlをリネームし、view内のファイルを表示させようとしたところ、Incomplete response received from applicationと表示される。error_logに記載の通り、秘密鍵の設定ができいない旨のエラーですが、本番環境構築時の動作確認時に表示され、該当の設定たことで事象は解消され、public/index.htmlの表示がされることを確認しした。そのため、秘密鍵の設定は問題ないと思っています。
50
82
 
51
83
 
52
84
 

1

試したことを追記

2018/07/09 03:37

投稿

koichi8888
koichi8888

スコア24

test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,9 @@
44
44
 
45
45
 
46
46
 
47
- rails routesでルーティングの設定は開発環境と同じように設定されていることを確認
47
+ rails routesでルーティングの設定は開発環境と同じように設定されていることを確認
48
+
49
+ ・public/index.htmlをリネームし、view内のファイルを表示させようとしたところ、Incomplete response received from applicationと表示されてしまう
48
50
 
49
51
 
50
52