Change local web server back to WEBrick in Rails from Puma

puma, ruby-on-rails, webrick

Solution

To run the local server in development with webrick you should only have to specify it when running `rails server`:

rails server webrick

You may get it to default back to webrick again if you move puma to the production group of your Gemfile:

group :production do
  gem 'puma'
end

Then bundle without the production group:

bundle install --without production

Problem

I was following the Heroku docs on getting Puma set up and entered this command: ``` bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} ``` Which made it so that now I run puma in my development environment whenever I run a `rails s`. But or whatever reason Puma is causing havok. How do I switch back to using WEBrick?? Tried ``` bundle exec webrick -p ${PORT:-3000} -e ${RACK_ENV:-development} ``` But of course, command is not found: webrick. Knew that' be too easy... Thanks!

Original source

Related problems