diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-22 01:08:19 +0900 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-22 01:08:19 +0900 |
commit | 3e27a03fe4125eb5c15fb4ef34f1fc06ed4db67f (patch) | |
tree | 5f2b3ab4a114b1b4567a9d71a2062142a85c584f /guides | |
parent | fac25eb7b03a5db44d53b204cbaab6582d91d526 (diff) | |
parent | 5919cce0ded95a0c80dc8fc28d54cc146d855606 (diff) | |
download | rails-3e27a03fe4125eb5c15fb4ef34f1fc06ed4db67f.tar.gz rails-3e27a03fe4125eb5c15fb4ef34f1fc06ed4db67f.tar.bz2 rails-3e27a03fe4125eb5c15fb4ef34f1fc06ed4db67f.zip |
Merge pull request #16984 from chancancode/fix_16578
Document that the default for `rails server -b` has changed
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/4_2_release_notes.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/guides/source/4_2_release_notes.md b/guides/source/4_2_release_notes.md index f3f6942135..19d61e6f3f 100644 --- a/guides/source/4_2_release_notes.md +++ b/guides/source/4_2_release_notes.md @@ -177,6 +177,21 @@ class UsersController < ApplicationController end ``` +### Default host for `rails server` + +Due to a [change in Rack](https://github.com/rack/rack/commit/28b014484a8ac0bbb388e7eaeeef159598ec64fc), +`rails server` now listens on `localhost` instead of `0.0.0.0` by default. This +should have minimal impact on the standard development workflow as both http://127.0.0.1:3000 +and http://localhost:3000 would continue to work as before on your own machine. + +However, with this change you would no longer be able to access the Rails server +from a different machine (e.g. your development environment is in a virtual +machine and you would like to access it from the host machine), you would need +to start the server with `rails server -b 0.0.0.0` to restore the old behavior. + +If you do this, be sure to configure your firewall properly such that only +trusted machines on your network can access your development server. + ### Production logging The default log level in the `production` environment is now `:debug`. This |