budget/config/cable.yml
Andrew Tomaka 959dc586c5
All checks were successful
Ruby CI / test (pull_request) Successful in 26s
Just use solid_queue in development
So you won't rip your hair out because async is thread local
2025-01-17 00:16:31 -05:00

22 lines
664 B
YAML

# 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.
development:
adapter: solid_cable
connects_to:
database:
writing: cable
polling_interval: 0.1.seconds
message_retention: 1.day
test:
adapter: test
production:
adapter: solid_cable
connects_to:
database:
writing: cable
polling_interval: 0.1.seconds
message_retention: 1.day