diff options
author | Mr. Outis <mroutis@protonmail.com> | 2017-08-22 13:16:32 -0500 |
---|---|---|
committer | Mr. Outis <mroutis@protonmail.com> | 2017-08-22 13:16:35 -0500 |
commit | e267db2914785e20bee17097247dc84539ea4c39 (patch) | |
tree | 36fda6136325f6757aa80eeae8508c46cea43860 /railties | |
parent | 665ac7cff212d010a3573f85cea895666fbaad15 (diff) | |
download | rails-e267db2914785e20bee17097247dc84539ea4c39.tar.gz rails-e267db2914785e20bee17097247dc84539ea4c39.tar.bz2 rails-e267db2914785e20bee17097247dc84539ea4c39.zip |
Use REDIS_URL var for Action Cable config template
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/cable.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 |