Skip to content

Commit

Permalink
Hotfix: Unbreak debugging in development
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht committed May 17, 2024
1 parent 7c29043 commit d0fceb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Procfile.dev
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
web: env RUBY_DEBUG_OPEN=true bin/rails server -p ${PORT:-3000}
worker: bin/rake solid_queue:start
tailwind: bin/rails tailwindcss:watch
8 changes: 4 additions & 4 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# the maximum value specified for Puma. Default is set to 5 threads for minimum
# and maximum; this matches the default thread size of Active Record.
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") {
ENV.fetch("RAILS_ENV", "development") == "development" ? 2 : 5
ENV.fetch("RAILS_ENV", "development") == "development" ? 1 : 5
}
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
threads min_threads_count, max_threads_count
Expand All @@ -18,6 +18,8 @@
require "concurrent-ruby"
worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count })
workers worker_count if worker_count > 1
else
workers 0
end

# Specifies the `worker_timeout` threshold that Puma will use to wait before
Expand All @@ -38,6 +40,4 @@

if ENV.fetch("RUN_SOLID_QUEUE_IN_PUMA") { false }
plugin :solid_queue
end

plugin :tailwindcss if ENV.fetch("RAILS_ENV", "development") == "development"
end

0 comments on commit d0fceb4

Please sign in to comment.