From e267db2914785e20bee17097247dc84539ea4c39 Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Tue, 22 Aug 2017 13:16:32 -0500 Subject: Use REDIS_URL var for Action Cable config template --- railties/lib/rails/generators/rails/app/templates/config/cable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/lib/rails/generators/rails/app/templates/config/cable.yml b/railties/lib/rails/generators/rails/app/templates/config/cable.yml index 1da4913082..8e53156c71 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/cable.yml +++ b/railties/lib/rails/generators/rails/app/templates/config/cable.yml @@ -6,5 +6,5 @@ test: production: adapter: redis - url: redis://localhost:6379/1 + url: <%%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> channel_prefix: <%= app_name %>_production -- cgit v1.2.3