commandbox-modules/commandbox-dotenv

Enhance .env check preServerStart with all environment variables

elpete opened this issue · 0 comments

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 ) {