diff options
author | Jon Moss <me@jonathanmoss.me> | 2016-02-04 22:33:46 -0500 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2016-02-24 19:05:03 -0500 |
commit | 8b69f1eeba753c38364fb88136b2503480f2de1d (patch) | |
tree | 6c855e3aaeaf1de00d6d92da22ae4d1d90785e33 /guides | |
parent | b5431d7843cc286586a5ed43c1f92e35cacec07e (diff) | |
download | rails-8b69f1eeba753c38364fb88136b2503480f2de1d.tar.gz rails-8b69f1eeba753c38364fb88136b2503480f2de1d.tar.bz2 rails-8b69f1eeba753c38364fb88136b2503480f2de1d.zip |
Enable Action Cable routes by default
This also marks Action Cable routes as internal to Rails.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 23866b1800..3f522386d3 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -613,6 +613,17 @@ There are a few configuration options available in Active Support: * `config.active_job.logger` accepts a logger conforming to the interface of Log4r or the default Ruby Logger class, which is then used to log information from Active Job. You can retrieve this logger by calling `logger` on either an Active Job class or an Active Job instance. Set to `nil` to disable logging. +### Configuring Action Cable + +* `config.action_cable.url` accepts a string for the URL for where + you are hosting your Action Cable server. You would use this option +if you are running Action Cable servers that are separated from your +main application. +* `config.action_cable.mount_path` accepts a string for where to mount Action + Cable, as apart of the main server process. Defaults to `/cable`. +You can set this as nil to not mount Action Cable as apart of your +normal Rails server. + ### Configuring a Database Just about every Rails application will interact with a database. You can connect to the database by setting an environment variable `ENV['DATABASE_URL']` or by using a configuration file called `config/database.yml`. |