From 4a4e0764160421735f1739cf92d67e591b6eb8a4 Mon Sep 17 00:00:00 2001 From: BenClaw Date: Sun, 17 May 2026 20:16:01 +0200 Subject: [PATCH] fix(action_cable): use Redis adapter in development too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - async adapter is in-process — works in Puma request cycle but fails from Rails console (no event loop to deliver messages) - Redis is shared-state, works from any context (console, jobs, requests) - Dev uses Redis DB 2, separate channel_prefix from production --- config/cable.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/cable.yml b/config/cable.yml index cd9c788c..36d8ae70 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -6,7 +6,9 @@ # Redis is also used for Mozo::Counter (replacing DrbCounter). # development: - adapter: async + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/2" } %> + channel_prefix: mozo_backend_dev test: adapter: test