Skip to content

Commit

Permalink
Increase worker timeout in development
Browse files Browse the repository at this point in the history
Allows time for debugging without Puma killing the process
  • Loading branch information
NuckChorris committed Oct 27, 2024
1 parent e842179 commit 422c326
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
max_threads_count = ENV.fetch('RAILS_MAX_THREADS', 6)
min_threads_count = ENV.fetch('RAILS_MIN_THREADS', 0)
threads min_threads_count, max_threads_count

# Specifies the `worker_timeout` threshold that Puma will use to wait before
# terminating a worker in development environments.
#
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"

# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
#
port ENV.fetch('PORT', 3000)
Expand Down

0 comments on commit 422c326

Please sign in to comment.