Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change HOST to RIVER_HOST #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Change HOST to RIVER_HOST #184

wants to merge 1 commit into from

Conversation

brandur
Copy link
Collaborator

@brandur brandur commented Sep 21, 2024

I realized after merging #157 that it's probably not appropriate to use
the env var HOST because it's so ubiquitous and easily conflated with
a value intended for a different, non-River use. For example, HOST is
set automatically on every computer running Mac OS, and likely other
operating systems as well.

Since we're prefixing variables with RIVER_ for other purposes like
RIVER_LOG_LEVEL in #183 anyway, change this to RIVER_HOST.

I think we should probably prefix some of the other env vars that
River UI uses as well (e.g. DEV should maybe be RIVER_DEV), but
after starting to do that I gave up on it for now since there were a
couple where the right thing to do (prefix versus not) wasn't totally
clear.

I realized after merging #157 that it's probably not appropriate to use
the env var `HOST` because it's so ubiquitous and easily conflated with
a value intended for a different, non-River use. For example, `HOST` is
set automatically on every computer running Mac OS, and likely other
operating systems as well.

Since we're prefixing variables with `RIVER_` for other purposes like
`RIVER_LOG_LEVEL` in #183 anyway, change this to `RIVER_HOST`.

I think we should probably prefix some of the other env vars that
River UI uses as well (e.g. `DEV` should maybe be `RIVER_DEV`), but
after starting to do that I gave up on it for now since there were a
couple where the right thing to do (prefix versus not) wasn't totally
clear.
Copy link
Contributor

@bgentry bgentry left a comment

Choose a reason for hiding this comment

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

Thanks, was meaning to ask about this but forgot.

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