Skip to content

Conversation

@jonkafton
Copy link
Contributor

@jonkafton jonkafton commented Jul 2, 2024

Description (What does it do?)

Uses the dotenv package to read the .env files when running outside of Docker. Inside Docker, they are supplied on the Docker Compose run config.

This is to accommodate the recent and excellent cleanup of env var handling: #1179

Checks that the ENVIRONMENT is "local" before reading in the .env files.

Also sets the Webpack dev server to use host 0.0.0.0.

How can this be tested?

This also sets the ENVIRONMENT to docker for yarn run watch:docker. It was set to this at some point previously, though if we see issues, that would be the most likely cause.

@jonkafton jonkafton added the Needs Review An open Pull Request that is ready for review label Jul 2, 2024
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki left a comment

Choose a reason for hiding this comment

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

👍

@jonkafton jonkafton merged commit d43fa26 into main Jul 3, 2024
This was referenced Jul 8, 2024
@rhysyngsun rhysyngsun deleted the jk/dotenv-vars branch February 7, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review An open Pull Request that is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants