質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -179,3 +179,43 @@
|
|
179
179
|
|
180
180
|
|
181
181
|
```
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
###回答からさらに追記
|
186
|
+
|
187
|
+
後ろに -D developmentをつけたところ下記エラーが出てきました
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
```
|
192
|
+
|
193
|
+
$ bundle exec unicorn_rails -c config/unicorn.rb -D development
|
194
|
+
|
195
|
+
bundler: failed to load command: unicorn_rails (/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/bin/unicorn_rails)
|
196
|
+
|
197
|
+
ArgumentError: rackup file (development) not readable
|
198
|
+
|
199
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:702:in `parse_rackup_file'
|
200
|
+
|
201
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:86:in `reload'
|
202
|
+
|
203
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/configurator.rb:77:in `initialize'
|
204
|
+
|
205
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `new'
|
206
|
+
|
207
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:77:in `initialize'
|
208
|
+
|
209
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `new'
|
210
|
+
|
211
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>'
|
212
|
+
|
213
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/bin/unicorn_rails:23:in `load'
|
214
|
+
|
215
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/bin/unicorn_rails:23:in `<top (required)>'
|
216
|
+
|
217
|
+
master failed to start, check stderr log for details
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
```
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -101,3 +101,81 @@
|
|
101
101
|
しかし、URLにアクセスしても502 nginxが出て反応がない
|
102
102
|
|
103
103
|
```
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
###回答から追記
|
108
|
+
|
109
|
+
エラー内容をみると
|
110
|
+
|
111
|
+
in `require': cannot load such file -- rack/handler/unicorn (LoadError)
|
112
|
+
|
113
|
+
ここが問題のようです
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
$ bundle exec rails s unicorn
|
118
|
+
|
119
|
+
Exiting
|
120
|
+
|
121
|
+
Traceback (most recent call last):
|
122
|
+
|
123
|
+
27: from bin/rails:9:in `<main>'
|
124
|
+
|
125
|
+
26: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
|
126
|
+
|
127
|
+
25: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
|
128
|
+
|
129
|
+
24: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
|
130
|
+
|
131
|
+
23: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
|
132
|
+
|
133
|
+
22: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
|
134
|
+
|
135
|
+
21: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
|
136
|
+
|
137
|
+
20: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
|
138
|
+
|
139
|
+
19: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
|
140
|
+
|
141
|
+
18: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<main>'
|
142
|
+
|
143
|
+
17: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:46:in `invoke'
|
144
|
+
|
145
|
+
16: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command/base.rb:65:in `perform'
|
146
|
+
|
147
|
+
15: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
|
148
|
+
|
149
|
+
14: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
|
150
|
+
|
151
|
+
13: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
|
152
|
+
|
153
|
+
12: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `perform'
|
154
|
+
|
155
|
+
11: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `tap'
|
156
|
+
|
157
|
+
10: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:147:in `block in perform'
|
158
|
+
|
159
|
+
9: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:47:in `start'
|
160
|
+
|
161
|
+
8: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:76:in `print_boot_information'
|
162
|
+
|
163
|
+
7: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:105:in `use_puma?'
|
164
|
+
|
165
|
+
6: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/server.rb:301:in `server'
|
166
|
+
|
167
|
+
5: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/handler.rb:16:in `get'
|
168
|
+
|
169
|
+
4: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/handler.rb:74:in `try_require'
|
170
|
+
|
171
|
+
3: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
|
172
|
+
|
173
|
+
2: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
|
174
|
+
|
175
|
+
1: from /home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
|
176
|
+
|
177
|
+
/home/kkawahara/workspace/working/webex/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': cannot load such file -- rack/handler/unicorn (LoadError)
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
```
|