diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-16 20:19:36 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-16 20:36:11 +0100 |
commit | c9c9a609cb9c30635978e3cb64ac0e1637313232 (patch) | |
tree | 0fc98fc3725c3717790613094e231d99673fd3f5 | |
parent | 59db9ebc0ca79f3f7768d05a552c5520c9ed6b01 (diff) | |
download | rails-c9c9a609cb9c30635978e3cb64ac0e1637313232.tar.gz rails-c9c9a609cb9c30635978e3cb64ac0e1637313232.tar.bz2 rails-c9c9a609cb9c30635978e3cb64ac0e1637313232.zip |
Add default redis config for Action Cable
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 1 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/redis/cable.yml | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 9997cf3b35..16f30d0135 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -83,6 +83,7 @@ module Rails directory "environments" directory "initializers" directory "locales" + directory "redis" end end diff --git a/railties/lib/rails/generators/rails/app/templates/config/redis/cable.yml b/railties/lib/rails/generators/rails/app/templates/config/redis/cable.yml new file mode 100644 index 0000000000..d68aa719da --- /dev/null +++ b/railties/lib/rails/generators/rails/app/templates/config/redis/cable.yml @@ -0,0 +1,8 @@ +production: + url: redis://localhost:6379/3 + +development: + url: redis://localhost:6379/1 + +test: + url: redis://localhost:6379/2 |