質問編集履歴
5
エラーメッセージ追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,6 +19,8 @@
|
|
19
19
|
デプロイに関しては上記のgemの利用が必須ということでしょうか。
|
20
20
|
|
21
21
|
### 発生している問題・エラーメッセージ
|
22
|
+
/public/index.htmlをリネームした際に発生
|
23
|
+
⇒public配下のindex.htmlの読み込みがview内のindex.htmlより、優先されて可能性を確認するため。
|
22
24
|
/var/log/httpd/error_log
|
23
25
|
```
|
24
26
|
[ 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
|
4
補足情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,4 +46,5 @@
|
|
46
46
|
フレームワーク : Rails 4.2.9
|
47
47
|
Web:apache 2.2
|
48
48
|
DB : MySQL 5.6
|
49
|
-
ruby:2.3.7
|
49
|
+
ruby:2.3.7
|
50
|
+
Phusion Passenger: 5.3.3
|
3
タイトル誤字削除
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
rails4で開発環境から本番環境に移行できない
|
body
CHANGED
File without changes
|
2
エラーメッセージ、試したことを追加
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
rails4で開発環境から本番環境に移行できない
|
1
|
+
さrails4で開発環境から本番環境に移行できない
|
body
CHANGED
@@ -18,11 +18,27 @@
|
|
18
18
|
capistranoというgemを利用した手順しか見当たらず、困っています。
|
19
19
|
デプロイに関しては上記のgemの利用が必須ということでしょうか。
|
20
20
|
|
21
|
+
### 発生している問題・エラーメッセージ
|
22
|
+
/var/log/httpd/error_log
|
23
|
+
```
|
24
|
+
[ 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
|
25
|
+
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)):
|
26
|
+
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!'
|
27
|
+
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'
|
28
|
+
App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:514:in `call'
|
29
|
+
App 2832 output: from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.9/lib/rails/application.rb:165:in `call'
|
30
|
+
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'
|
31
|
+
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'
|
32
|
+
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'
|
33
|
+
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'
|
34
|
+
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'
|
35
|
+
[ 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
|
36
|
+
```
|
21
37
|
|
22
38
|
### 試したこと
|
23
39
|
|
24
40
|
・rails routesでルーティングの設定は開発環境と同じように設定されていることを確認
|
25
|
-
・public/index.htmlをリネームし、view内のファイルを表示させようとしたところ、Incomplete response received from applicationと表示されてしま
|
41
|
+
・public/index.htmlをリネームし、view内のファイルを表示させようとしたところ、Incomplete response received from applicationと表示される。error_logに記載の通り、秘密鍵の設定ができていない旨のエラーですが、本番環境構築時の動作確認時に表示され、該当の設定したことで事象は解消され、public/index.htmlの表示がされることを確認しました。そのため、秘密鍵の設定は問題ないと思っています。
|
26
42
|
|
27
43
|
### 補足情報(FW/ツールのバージョンなど)
|
28
44
|
|
1
試したことを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -21,7 +21,8 @@
|
|
21
21
|
|
22
22
|
### 試したこと
|
23
23
|
|
24
|
-
rails routesでルーティングの設定は開発環境と同じように設定されていることを確認
|
24
|
+
・rails routesでルーティングの設定は開発環境と同じように設定されていることを確認
|
25
|
+
・public/index.htmlをリネームし、view内のファイルを表示させようとしたところ、Incomplete response received from applicationと表示されてしまう
|
25
26
|
|
26
27
|
### 補足情報(FW/ツールのバージョンなど)
|
27
28
|
|