Proposal for allowing users to set their own env vars directly in the project. #130
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi everyone.
I actually just installed Gladys today to play with it and realized I could not get it running without modifying
config/connections.js
directly because I could not provide the require env variables outside of the project scope. Which is not good because that file will get overridden on each updates.Instead here's a proposal to set them up on a per-project scope. Means, everyone can create their own
.env
file at the root and set the env vars they need to work with their setup. Now, I realize it's kind of a breaking change because some people might have relied on the fact that we default to some values if the env vars are not there (we can bring that behaviour back if necessary) but I wanted to introduce some good practice first and get your opinions after since I'm not experienced with the project.A
.env
file looks like:I can update the Readme file if we're going to agree on these changes. 👍