How to run rails puma server with config file using 'rails s puma'
问题 I am able to run a puma server in rails using either rails s puma or just puma . According to this answer, running rails s puma makes the server aware of the rails environment. It shows server errors etc that running puma alone does not. I want to set a config file like so: config/puma.rb workers Integer(ENV['PUMA_WORKERS'] || 3) threads Integer(ENV['MIN_THREADS'] || 1), Integer(ENV['MAX_THREADS'] || 16) rackup DefaultRackup port ENV['PORT'] || 3000 environment ENV['RACK_ENV'] || 'development