From d0fceb4da29a6a08aec8d1b2dfe93896865470c1 Mon Sep 17 00:00:00 2001 From: Keith Schacht Date: Fri, 17 May 2024 12:00:34 -0500 Subject: [PATCH] Hotfix: Unbreak debugging in development --- Procfile.dev | 1 + config/puma.rb | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Procfile.dev b/Procfile.dev index 2775406ad..b2cbf2fa1 100644 --- a/Procfile.dev +++ b/Procfile.dev @@ -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 \ No newline at end of file diff --git a/config/puma.rb b/config/puma.rb index e300c2d28..5bdafbca0 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -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 @@ -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 @@ -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 \ No newline at end of file