From 7777c01d3b1dd1f848a3746235e9b92c77004b19 Mon Sep 17 00:00:00 2001 From: Beatrice Olivera Date: Tue, 28 Aug 2018 10:56:54 +0100 Subject: [PATCH] set up redis and heroku config --- config/cable.yml | 2 +- config/environments/production.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/cable.yml b/config/cable.yml index 4ace22b..5427c66 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -6,5 +6,5 @@ test: production: adapter: redis - url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + url: ${REDISTOGO_URL} channel_prefix: polyglot_production diff --git a/config/environments/production.rb b/config/environments/production.rb index e6030dc..c90a719 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -46,8 +46,8 @@ Rails.application.configure do # Mount Action Cable outside main process or domain # config.action_cable.mount_path = nil - # config.action_cable.url = 'wss://example.com/cable' - # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + config.action_cable.url = 'wss://polyglot-173.herokuapp.com/cable' + config.action_cable.allowed_request_origins = [ '*' ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true