From 9e6ce909508013e80f49160bf629f00bed29faec Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 4 Jan 2017 11:08:32 -0500 Subject: [PATCH] update config for heroku and prod --- config/cable.yml | 2 +- config/environments/production.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/cable.yml b/config/cable.yml index 0bbde6f7..34eb5cdc 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -6,4 +6,4 @@ test: production: adapter: redis - url: redis://localhost:6379/1 + url: <%= ENV['REDISTOGO_URL'] %> diff --git a/config/environments/production.rb b/config/environments/production.rb index ab4769b6..fd7ff05a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -3,6 +3,8 @@ Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb + config.action_cable.allowed_request_origins = ['https://metamaps.herokuapp.com', 'http://metamaps.herokuapp.com', 'https://metamaps.cc'] + # log to stdout logger = Logger.new(STDOUT) logger.formatter = config.log_formatter