私の Gemfile は次のようになります。
source 'https://rubygems.org'
ruby '2.2.2'
gem 'rails', '~> 4.2.1'
# a bunch of stuff that is commented out goes here
group :production do
# Use Postgres as the database for Active Record
gem 'pg', '~> 0.18.1'
# An irrelevant comment
gem 'rails_12factor', '~> 0.0.3'
# Use Puma as the server
gem 'puma', '~> 2.11.2'
end
と入力して Rails を実行するrails server -e development
と、開発環境で Puma が指定されていないにもかかわらず、Puma が実行されていることがわかります。という行をコメントアウトするとgem 'puma', '~> 2.11.2'
、(予想どおり) WEBrick が使用されます。
gemfile で指定されていないのに、開発環境で Puma が使用されるのはなぜですか?