If you’ve got puma in your Gemfile, then that’s probably your default server.
If you run it with multiple threads, you will have strange issues when debugging with pry.
Instead, run puma with a single thread like this:
puma -t 0:1 -w 1 -p 3000
If you have a config/puma.rb
file using ENV vars for the workers and threads, you might use a command like:
WEB_CONCURRENCY=1 RAILS_MAX_THREADS=1 PORT=3000 rails s
Here’s some info on setting a longer timeout with puma: