aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-08-22 16:51:38 -0300
committerGitHub <noreply@github.com>2016-08-22 16:51:38 -0300
commit3bfd35245278f410bb2165e859f1cfeb352e0d77 (patch)
tree73244b717779d0907542a6b15d5fa3cd476326e7 /guides
parentdf84e9867219e9311aef6f4efd5dd9ec675bee5c (diff)
parent65b5960759ed7913189b94bea4ea96471bd07dac (diff)
downloadrails-3bfd35245278f410bb2165e859f1cfeb352e0d77.tar.gz
rails-3bfd35245278f410bb2165e859f1cfeb352e0d77.tar.bz2
rails-3bfd35245278f410bb2165e859f1cfeb352e0d77.zip
Merge pull request #26249 from rafamanzo/add_redis_to_development_dependencies
Update docs with Action Cable Redis dependency
Diffstat (limited to 'guides')
-rw-r--r--guides/source/development_dependencies_install.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/guides/source/development_dependencies_install.md b/guides/source/development_dependencies_install.md
index cc24e6f666..20cd34c182 100644
--- a/guides/source/development_dependencies_install.md
+++ b/guides/source/development_dependencies_install.md
@@ -288,3 +288,46 @@ NOTE: Using the rake task to create the test databases ensures they have the cor
NOTE: You'll see the following warning (or localized warning) during activating HStore extension in PostgreSQL 9.1.x or earlier: "WARNING: => is deprecated as an operator".
If you're using another database, check the file `activerecord/test/config.yml` or `activerecord/test/config.example.yml` for default connection information. You can edit `activerecord/test/config.yml` to provide different credentials on your machine if you must, but obviously you should not push any such changes back to Rails.
+
+### Action Cable Setup
+
+Action Cable uses Redis as its default subscriptions adapter ([read more](action_cable_overview.html#broadcasting)). Thus, in order to have Action Cable's tests passing you need to install and have Redis running.
+
+#### Install Redis From Source
+
+Redis' documentation discourage installations with package managers as those are usually outdated. Installing from source and bringing the server up is straight forward and well documented on [Redis' documentation](http://redis.io/download#installation).
+
+#### Install Redis From Package Manager
+
+On OS X, you can run:
+
+```bash
+$ brew install redis
+```
+
+Follow the instructions given by Homebrew to start these.
+
+In Ubuntu just run:
+
+```bash
+$ sudo apt-get install redis-server
+```
+
+On Fedora or CentOS (requires EPEL enabled), just run:
+
+```bash
+$ sudo yum install redis
+```
+
+If you are running Arch Linux just run:
+
+```bash
+$ sudo pacman -S redis
+$ sudo systemctl start redis
+```
+
+FreeBSD users will have to run the following:
+
+```bash
+# portmaster databases/redis
+```