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

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Change HOST to RIVER_HOST #184

merged 1 commit into from
Nov 26, 2024

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.

@bgentry bgentry merged commit c5f6613 into master Nov 26, 2024
13 checks passed
@bgentry bgentry deleted the brandur-river-host branch November 26, 2024 21:50
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