Skip to content

Commit f2e1b52

Browse files
committed
redis for cables
1 parent 0fc60e1 commit f2e1b52

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ gem 'pretender'
3535
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
3636
# gem 'jbuilder', '~> 2.7'
3737
# Use Redis adapter to run Action Cable in production
38-
# gem 'redis', '~> 4.0'
38+
gem 'redis', '~> 4.0'
3939

4040
# Use Capistrano for deployment
4141
# gem 'capistrano-rails', group: :development

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ GEM
279279
execjs
280280
railties (>= 3.2)
281281
tilt
282+
redis (4.8.1)
282283
regexp_parser (2.8.0)
283284
responders (3.1.0)
284285
actionpack (>= 5.2)
@@ -385,6 +386,7 @@ DEPENDENCIES
385386
puma (~> 4.1)
386387
rails (~> 6.1)
387388
react-rails
389+
redis (~> 4.0)
388390
rubocop-rails
389391
rubyzip
390392
selenium-webdriver

config/cable.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# test:
55
# adapter: test
66
#
7-
# production:
8-
# adapter: redis
9-
# url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10-
# channel_prefix: hourglass_production
11-
127
production:
13-
adapter: postgresql
8+
adapter: redis
9+
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10+
channel_prefix: hourglass_production
11+
12+
# production:
13+
# adapter: postgresql
1414

1515
development:
1616
adapter: postgresql

0 commit comments

Comments
 (0)