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

Permit empty collection of vars in example file #7

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

devinivy
Copy link
Contributor

@devinivy devinivy commented Sep 7, 2020

In hapipal/boilerplate#91 (comment) it was mentioned that the hapipal boilerplate's use-case for having empty .env and .env.example files seemed reasonable and that a PR would be welcome. This is that PR ☺️

To document the use-case: the boilerplate supports a single, optional PORT environment variable with a default set via runtime validation. It's desired to not force the user to fill this environment variable in manually during installation. The standard way to handle optional variables with envy is to just leave them commented-out in .env.example, but in our case that would result in an empty example file, which envy does not allow. This PR removes the check for an empty example file, which is a breaking change.

@sholladay sholladay merged commit 6fda3fc into sholladay:master Sep 7, 2020
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.

2 participants