Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aldeed
Copy link
Contributor

@aldeed aldeed commented Dec 14, 2019

Resolves #5921
Impact: minor
Type: refactor

Changes

  • The correct pattern for ENV loading is to use envalid to check them on startup rather than accessing process.env directly. I've updated everything to use this pattern.
  • Some envalid.cleanEnv calls listed variables that were no longer used by any code. Removed them.
  • Some code was checking whether NODE_ENV was "jesttest". In the old Meteor app, "jesttest" was used when integration tests ran. It was a workaround that is no longer needed, and integration tests have been running with NODE_ENV set to the default of "test" for some time, so I updated the checks to look for "test".

Breaking changes

None

Testing

Verify the app starts up and anything else you think needs testing

@aldeed aldeed requested a review from willopez December 14, 2019 21:41
Copy link
Member

@willopez willopez left a comment

Choose a reason for hiding this comment

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

LGTM

@willopez willopez merged commit 7659cdd into release-3.0.0 Dec 16, 2019
@willopez willopez deleted the refactor-aldeed-5921-env-cleanup branch December 16, 2019 17:15
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