Skip to content

Commit fe7b4dc

Browse files
committed
add & configure redis for actioncable
1 parent ee1b56b commit fe7b4dc

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@
3939

4040
/node_modules
4141

42+
dump.rdb
43+
4244
TODO.txt

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ gem "cssbundling-rails"
3030
gem "jbuilder"
3131

3232
# Use Redis adapter to run Action Cable in production
33-
# gem "redis", ">= 4.0.1"
33+
gem "redis", ">= 4.0.1"
3434

3535
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
3636
# gem "kredis"

Gemfile.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ GEM
200200
rake (13.2.1)
201201
rdoc (6.7.0)
202202
psych (>= 4.0.0)
203+
redis (5.2.0)
204+
redis-client (>= 0.22.0)
205+
redis-client (0.22.2)
206+
connection_pool
203207
regexp_parser (2.9.2)
204208
reline (0.5.9)
205209
io-console (~> 0.5)
@@ -266,6 +270,7 @@ DEPENDENCIES
266270
pg (~> 1.1)
267271
puma (>= 5.0)
268272
rails (~> 7.1.3, >= 7.1.3.4)
273+
redis (>= 4.0.1)
269274
selenium-webdriver
270275
simple_form (~> 5.3)
271276
sprockets-rails

config/cable.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
development:
2-
adapter: async
2+
adapter: redis
3+
url: redis://localhost:6379/1
34

45
test:
56
adapter: test

0 commit comments

Comments
 (0)