From 20fab7bbd68c510909d34d9cd2677530ae2f7dd4 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 30 Nov 2024 12:11:36 +0000 Subject: [PATCH] Chore: Puma config tweaks Because: - Barnes doesnt need to be started in the puma config file. --- config/puma.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index 5d1857f95e..c39b444d21 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,4 +1,4 @@ -require 'barnes' +enable_keep_alives false workers Integer(ENV['WEB_CONCURRENCY'] || 2) threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5) @@ -8,14 +8,7 @@ port ENV['PORT'] || 3000 environment ENV['RACK_ENV'] || 'development' -enable_keep_alives false on_worker_boot do - # Worker specific setup for Rails 4.1+ - # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot ActiveRecord::Base.establish_connection end - -before_fork do - Barnes.start -end