Skip to content

Enhance .env check preServerStart with all environment variables #20

Description

@elpete

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions