diff --git a/config/cable.yml b/config/cable.yml index b9adc5a..e287ba7 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -1,17 +1,16 @@ -# 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: async - -test: - adapter: test - -production: +sc_default: &sc_default adapter: solid_cable connects_to: database: writing: cable polling_interval: 0.1.seconds message_retention: 1.day + +development: + <<: *sc_default + +test: + adapter: test + +production: + <<: *sc_default diff --git a/config/database.yml b/config/database.yml index f7fadad..51b5bb4 100644 --- a/config/database.yml +++ b/config/database.yml @@ -25,6 +25,10 @@ development: <<: *default database: subtle_storm_development_queue migrations_paths: db/queue_migrate + cable: + <<: *default + database: subtle_storm_development_cable + migrations_paths: db/cable_migrate # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". @@ -37,6 +41,10 @@ test: <<: *default database: subtle_storm_test_queue migrations_paths: db/queue_migrate + cable: + <<: *default + database: subtle_storm_test_cable + migrations_paths: db/cable_migrate # As with config/credentials.yml, you never want to store sensitive information, # like your database password, in your source code. If your source code is