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

Enhance .env check preServerStart with all environment variables #20

Open
elpete opened this issue Apr 26, 2021 · 0 comments
Open

Enhance .env check preServerStart with all environment variables #20

elpete opened this issue Apr 26, 2021 · 0 comments

Comments

@elpete
Copy link
Collaborator

elpete commented Apr 26, 2021

Instead of only comparing the .env and the .env.example files, check the entire environment that CommandBox knows about against the .env.example file. This will make it work better in CI environments.

Steps:

  1. Load in .env file to CommandBox.
  2. Open .env.example.
  3. Compare .env.example keys to CommandBox's known keys.

if ( moduleSettings.checkEnvPreServerStart ) {

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

No branches or pull requests

1 participant