From 8f0789fede07c3a5d62b324477f0b02adc657094 Mon Sep 17 00:00:00 2001 From: Yan Date: Thu, 28 Sep 2017 10:43:17 +0630 Subject: [PATCH] add config for cable --- config/environments/production.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index feb370ea..daf783e7 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -84,4 +84,8 @@ Rails.application.configure do # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + + # Action Cable Setup + config.action_cable.url = "ws://192.168.1.24:9292/cable" + config.action_cable.allowed_request_origins = [/http:\/\/*/, /https:\/\/*/] end