mac osX
rails4
nginx
unicorn
開発環境でunicorn woker killer 0.4.4というgemを入れてから、
rails sでエラーになり、localhost:3000が立ち上がらなくなりました。
以下エラーログです。
localhost:3000が使えるようにするにはどうすればよさそうでしょうか?
参考になる記事が見つからなかったのでアドバイスお願いします。
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
user1-no-MacBook-Air:projects user1$ rails s
=> Booting WEBrick
=> Rails 4.2.6 application starting in development on http://localhost:3000
=> Run rails server -h
for more startup options
=> Ctrl-C to shutdown server
Exiting
/Users/user1/projects/vendor/bundle/gems/unicorn-worker-killer-0.4.4/lib/unicorn/worker_killer/configuration.rb:1:in <top (required)>': uninitialized constant Unicorn (NameError) from /Users/user1/projects/vendor/bundle/gems/unicorn-worker-killer-0.4.4/lib/unicorn/worker_killer.rb:1:in
<top (required)>'
from /Users/user1/projects/config.ru:2:in block in <main>' from /Users/user1/projects/vendor/bundle/gems/rack-1.6.5/lib/rack/builder.rb:55:in
instance_eval'
from /Users/user1/projects/vendor/bundle/gems/rack-1.6.5/lib/rack/builder.rb:55:in initialize' from /Users/user1/projects/config.ru:in
new'
from /Users/user1/projects/config.ru:in <main>' from /Users/user1/projects/vendor/bundle/gems/rack-1.6.5/lib/rack/builder.rb:49:in
eval'
from /Users/user1/projects/vendor/bundle/gems/rack-1.6.5/lib/rack/builder.rb:49:in new_from_string' from /Users/user1/projects/vendor/bundle/gems/rack-1.6.5/lib/rack/builder.rb:40:in
parse_file'
from /Users/user1/projects/vendor/bundle/gems/rack-1.6.5/lib/rack/server.rb:299:in build_app_and_options_from_config' from /Users/user1/projects/vendor/bundle/gems/rack-1.6.5/lib/rack/server.rb:208:in
app'
from /Users/user1/projects/vendor/bundle/gems/railties-4.2.6/lib/rails/commands/server.rb:61:in app' from /Users/user1/projects/vendor/bundle/gems/rack-1.6.5/lib/rack/server.rb:336:in
wrapped_app'
from /Users/user1/projects/vendor/bundle/gems/railties-4.2.6/lib/rails/commands/server.rb:139:in log_to_stdout' from /Users/user1/projects/vendor/bundle/gems/railties-4.2.6/lib/rails/commands/server.rb:78:in
start'
from /Users/user1/projects/vendor/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in block in server' from /Users/user1/projects/vendor/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in
tap'
from /Users/user1/projects/vendor/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in server' from /Users/user1/projects/vendor/bundle/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in
run_command!'
from /Users/user1/projects/vendor/bundle/gems/railties-4.2.6/lib/rails/commands.rb:17:in <top (required)>' from /Users/user1/projects/bin/rails:9:in
require'
from /Users/user1/projects/bin/rails:9:in <top (required)>' from /Users/user1/projects/vendor/bundle/gems/spring-2.0.0/lib/spring/client/rails.rb:28:in
load'
from /Users/user1/projects/vendor/bundle/gems/spring-2.0.0/lib/spring/client/rails.rb:28:in call' from /Users/user1/projects/vendor/bundle/gems/spring-2.0.0/lib/spring/client/command.rb:7:in
call'
from /Users/user1/projects/vendor/bundle/gems/spring-2.0.0/lib/spring/client.rb:30:in run' from /Users/user1/projects/vendor/bundle/gems/spring-2.0.0/bin/spring:49:in
<top (required)>'
from /Users/user1/projects/vendor/bundle/gems/spring-2.0.0/lib/spring/binstub.rb:31:in load' from /Users/user1/projects/vendor/bundle/gems/spring-2.0.0/lib/spring/binstub.rb:31:in
<top (required)>'
from /Users/user1/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in require' from /Users/user1/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in
require'
from /Users/user1/projects/bin/spring:14:in <top (required)>' from bin/rails:3:in
load'
from bin/rails:3:in `<main>'
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
他に作業したファイルといえばconfig.ruで下記内容です。
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
(コメント)This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', FILE)
run Rails.application
(コメント) Unicorn self-process killer
require 'unicorn/worker_killer'
(コメント)Max requests per worker
use Unicorn::WorkerKiller::MaxRequests, 3072, 4096
(コメント)Max memory size (RSS) per worker
use Unicorn::WorkerKiller::Oom, (192*(10242)), (256*(10242))
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。