Skip to content

Comments

Configure Action Cable#1334

Merged
stevepolitodesign merged 1 commit intomainfrom
sp-configure-action-cable
Feb 13, 2026
Merged

Configure Action Cable#1334
stevepolitodesign merged 1 commit intomainfrom
sp-configure-action-cable

Conversation

@stevepolitodesign
Copy link
Contributor

@stevepolitodesign stevepolitodesign commented Feb 13, 2026

Closes #1327.

This commit fixes two problems.

First, it improves the developer experience by changing the subscription
adapter
from async to redis. Doing this accounts for the
following pain point:

The async adapter only works within the same process, so for manually
triggering cable updates from a console and seeing results in the
browser, you must do so from the web console (running inside the dev
process), not a terminal started via bin/rails console! Add console to
any action or any ERB template view to make the web console appear.

Next, we update the Redis adapter in production to account for
Heroku's requirements.

We don't need to uncomment the Redis related lines in
.github/workflows/ci.yml since we're not using Redis in our test
environment.

Closes #1327.

This commit fixes two problems.

First, it improve the developer experience by changing the [subscription
adapter][sa] from `async` to `redis`. Doing this accounts for the
following pain point:

> The async adapter only works within the same process, so for manually
triggering cable updates from a console and seeing results in the
browser, you must do so from the web console (running inside the dev
process), not a terminal started via `bin/rails console`! Add `console` to
any action or any ERB template view to make the web console appear.

Next, we update the [Redis adapter][ra] in `production` to account for
Heroku's [requirements][req].

We don't need to uncomment the Redis related lines in
`.github/workflows/ci.yml` since we're not using Redis in our `test`
environment.

[sa]: https://guides.rubyonrails.org/action_cable_overview.html#subscription-adapter
[ra]: https://guides.rubyonrails.org/action_cable_overview.html#redis-adapter
[req]: https://devcenter.heroku.com/articles/connecting-heroku-redis#connecting-in-rails
@stevepolitodesign stevepolitodesign force-pushed the sp-configure-action-cable branch from 46cddb0 to 91093bd Compare February 13, 2026 15:41
@stevepolitodesign stevepolitodesign merged commit 9f61495 into main Feb 13, 2026
2 checks passed
@stevepolitodesign stevepolitodesign deleted the sp-configure-action-cable branch February 13, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test Action Cable configuration

1 participant