diff --git a/Gemfile b/Gemfile index 96697d841..cd30fb5ab 100644 --- a/Gemfile +++ b/Gemfile @@ -35,7 +35,7 @@ gem 'pretender' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder # gem 'jbuilder', '~> 2.7' # Use Redis adapter to run Action Cable in production -# gem 'redis', '~> 4.0' +gem 'redis', '~> 4.0' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development diff --git a/Gemfile.lock b/Gemfile.lock index c20d5bb69..b9138a1c1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -279,6 +279,7 @@ GEM execjs railties (>= 3.2) tilt + redis (4.8.1) regexp_parser (2.8.0) responders (3.1.0) actionpack (>= 5.2) @@ -385,6 +386,7 @@ DEPENDENCIES puma (~> 4.1) rails (~> 6.1) react-rails + redis (~> 4.0) rubocop-rails rubyzip selenium-webdriver diff --git a/config/cable.yml b/config/cable.yml index 9c9ea91ac..86a5e10a6 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -4,13 +4,13 @@ # test: # adapter: test # -# production: -# adapter: redis -# url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> -# channel_prefix: hourglass_production - production: - adapter: postgresql + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + channel_prefix: hourglass_production + +# production: +# adapter: postgresql development: adapter: postgresql