From 4cdc93a1e449d8c81d3172f03adbd4288024883c Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Mon, 11 Mar 2019 18:52:40 +0530 Subject: Mention `environment variable` instead of just `environment` --- railties/CHANGELOG.md | 4 ++-- railties/lib/rails/commands/server/server_command.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'railties') 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"] -- cgit v1.2.3