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

Add override for dev env variables with "dotenv" file #495

Merged
merged 1 commit into from
May 20, 2021

Conversation

somaritane
Copy link
Contributor

@somaritane somaritane commented May 20, 2021

This PR adds the possibility for persistent override of local dev environment variables with ".env" file.

A contributor can now store the environment variables with respective values in the .env file at the local repository root:

cat .env

# .env:
LOG_LEVEL=info
LOG_FORMAT=json

Overrides done this way can persist between terminal sessions and can be used as a single point of configuration for development in terminal and IDE of choice. This removes the need to set environment variables separately for terminal and IDE, the experience remains consistent.

Signed-off-by: Timofey Ilinykh [email protected]

Add possibility for persistent override of local dev environment variables with ".env" file.

Signed-off-by: Timofey Ilinykh <[email protected]>
@somaritane somaritane force-pushed the dotenv-make-override branch from 55a33c3 to 1419098 Compare May 20, 2021 09:36
@somaritane somaritane requested a review from ytsarev May 20, 2021 09:47
@somaritane somaritane merged commit 5b61907 into master May 20, 2021
@somaritane somaritane deleted the dotenv-make-override branch May 20, 2021 10:32
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.

3 participants