0

私の 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 が使用されるのはなぜですか?

4

1 に答える 1

1

この質問をしてから 10 分後に、使用すると問題が解決することを示唆するこの回答bundle install --without productionを見つけました。他の誰かが同様の問題を抱えている場合に備えて、この質問をここに残します。

于 2015-05-07T06:10:36.450 に答える