Question

I'm using Puma on Heroku for my server. When i have the Puma gem installed my dev environment boots up with Puma as the server. I don't seem to be able to shut that off without pulling the pum gem from my gemfile.

I like the idea of using the save server in development as production but the puma server make it difficult to track my debug statements. Also i don't seem to have a way to change max threads, comes up as 16 in dev even though my puma.rb file sets it to 1.

Était-ce utile?

La solution

Just use puma in production mode. In your gemfile change gem 'puma' with

#Gemfile
group :production do
  gem 'puma'
end

and then run bundle install --without production to install the gem .

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top