Skip to content

Deprecate support for using HOST environment to specify server IP#32540

Merged
y-yagi merged 1 commit into
rails:masterfrom
y-yagi:fix_29516
Apr 16, 2018
Merged

Deprecate support for using HOST environment to specify server IP#32540
y-yagi merged 1 commit into
rails:masterfrom
y-yagi:fix_29516

Conversation

@y-yagi

@y-yagi y-yagi commented Apr 12, 2018

Copy link
Copy Markdown
Member

At SuSE, $HOST is set by default and is equal to $HOSTNAME.
https://www.suse.com/documentation/sled11/book_sle_admin/data/sec_adm_variables.html

Therefore, by default, it binds to hostname instead of localhost. This seems not to be appropriate as default behavior.

In order to avoid the name of the environment variable being used, changed the environment variable from HOST to BINDING.

Fixes #29516.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a smoother upgrade path, I think this should only complain if BINDING is not set

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. I fixed, thanks!

At SuSE, `$HOST` is set by default and is equal to `$HOSTNAME`.
https://www.suse.com/documentation/sled11/book_sle_admin/data/sec_adm_variables.html

Therefore, by default, it binds to hostname instead of `localhost`.
This seems not to be appropriate as default behavior.

In order to avoid the name of the environment variable being used,
I changed the environment variable from `HOST` to `BINDING`.

Fixes rails#29516.
@y-yagi y-yagi merged commit 37b373a into rails:master Apr 16, 2018
@y-yagi y-yagi deleted the fix_29516 branch April 16, 2018 05:35
pudiva added a commit to alphagov/govuk-docker that referenced this pull request Jul 9, 2020
Rails 6 deprecated the HOST variable in favour of BINDING
See: rails/rails#32540
pudiva added a commit to alphagov/govuk-docker that referenced this pull request Jul 9, 2020
Rails 6 deprecated the HOST variable in favour of BINDING
See: rails/rails#32540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants