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.

有帮助吗?

解决方案

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 .

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top