aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2019-03-11 18:52:40 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2019-03-11 18:54:13 +0530
commit4cdc93a1e449d8c81d3172f03adbd4288024883c (patch)
tree827df7a135d07c06852a81cf589437eae5dcee88
parent33800d2330e1c7d36dcbb5150857cfb33fc45379 (diff)
downloadrails-4cdc93a1e449d8c81d3172f03adbd4288024883c.tar.gz
rails-4cdc93a1e449d8c81d3172f03adbd4288024883c.tar.bz2
rails-4cdc93a1e449d8c81d3172f03adbd4288024883c.zip
Mention `environment variable` instead of just `environment`
-rw-r--r--railties/CHANGELOG.md4
-rw-r--r--railties/lib/rails/commands/server/server_command.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index 9e8b38733a..88f9ac06f6 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -268,9 +268,9 @@
*Jose Luis Duran*
-* Deprecate support for using the `HOST` environment to specify the server IP.
+* Deprecate support for using the `HOST` environment variable to specify the server IP.
- The `BINDING` environment should be used instead.
+ The `BINDING` environment variable should be used instead.
Fixes #29516.
diff --git a/railties/lib/rails/commands/server/server_command.rb b/railties/lib/rails/commands/server/server_command.rb
index 47c3f05bb3..bb1e4979c0 100644
--- a/railties/lib/rails/commands/server/server_command.rb
+++ b/railties/lib/rails/commands/server/server_command.rb
@@ -221,8 +221,8 @@ module Rails
if ENV["HOST"] && !ENV["BINDING"]
ActiveSupport::Deprecation.warn(<<-MSG.squish)
- Using the `HOST` environment to specify the IP is deprecated and will be removed in Rails 6.1.
- Please use `BINDING` environment instead.
+ Using the `HOST` environment variable to specify the IP is deprecated and will be removed in Rails 6.1.
+ Please use `BINDING` environment variable instead.
MSG
return ENV["HOST"]