From 8b15743d64646f1bd3f07171e2ba74336d4041f5 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 26 Jul 2024 21:31:51 -0400 Subject: [PATCH] Run solid_queue in development and puma --- config/environments/development.rb | 2 ++ config/puma.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index d969821..bdeef60 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -50,6 +50,8 @@ Rails.application.configure do # Highlight code that triggered database queries in logs. config.active_record.verbose_query_logs = true + # Use a real queuing backend for Active Job (and separate queues per environment). + config.active_job.queue_adapter = :solid_queue # Highlight code that enqueued background job in logs. config.active_job.verbose_enqueue_logs = true diff --git a/config/puma.rb b/config/puma.rb index f976b8a..2fe7e08 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -49,6 +49,7 @@ port ENV.fetch("PORT", 3000) # Allow puma to be restarted by `bin/rails restart` command. plugin :tmp_restart +plugin :solid_queue # Only use a pidfile when requested pidfile ENV["PIDFILE"] if ENV["PIDFILE"]