Cable config
This commit is contained in:
+10
-11
@@ -1,17 +1,16 @@
|
|||||||
# Async adapter only works within the same process, so for manually triggering cable updates from a console,
|
sc_default: &sc_default
|
||||||
# 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:
|
|
||||||
adapter: solid_cable
|
adapter: solid_cable
|
||||||
connects_to:
|
connects_to:
|
||||||
database:
|
database:
|
||||||
writing: cable
|
writing: cable
|
||||||
polling_interval: 0.1.seconds
|
polling_interval: 0.1.seconds
|
||||||
message_retention: 1.day
|
message_retention: 1.day
|
||||||
|
|
||||||
|
development:
|
||||||
|
<<: *sc_default
|
||||||
|
|
||||||
|
test:
|
||||||
|
adapter: test
|
||||||
|
|
||||||
|
production:
|
||||||
|
<<: *sc_default
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ development:
|
|||||||
<<: *default
|
<<: *default
|
||||||
database: subtle_storm_development_queue
|
database: subtle_storm_development_queue
|
||||||
migrations_paths: db/queue_migrate
|
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
|
# Warning: The database defined as "test" will be erased and
|
||||||
# re-generated from your development database when you run "rake".
|
# re-generated from your development database when you run "rake".
|
||||||
@@ -37,6 +41,10 @@ test:
|
|||||||
<<: *default
|
<<: *default
|
||||||
database: subtle_storm_test_queue
|
database: subtle_storm_test_queue
|
||||||
migrations_paths: db/queue_migrate
|
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,
|
# 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
|
# like your database password, in your source code. If your source code is
|
||||||
|
|||||||
Reference in New Issue
Block a user