Allow more control over .env loading message
See original GitHub issueI’m running automated pipenv run ...
commands, and each and every time there is a Loading .env environment variables
message.
Please, let me disable that message. pipenv run
doesn’t take switches nor is there a PIPENV_BARE
environment variable, and so output of the message is unconditional.
Either support --bare
for pipenv run
, or better still, let me control pipenv output with an environment variable like PIPENV_BARE
or PIPENV_QUIET
.
What I don’t want:
- Having to disable .env loading with
PIPENV_DONT_LOAD_ENV
- Having to redirect stderr to /dev/null; the commands I run with
pipenv run
have to be able to use stderr too, and if the .env is corrupted orPIPENV_DOTENV_LOCATION
is set I don’t want error messages about those issues to be missed.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:10
Top Results From Across the Web
5 reasons why your .env environment variables don't work
1. Your framework doesn't automatically load .env files. While some frameworks and packages come built-in support for environment variables ...
Read more >Environment Variables: What They Are and How To Use ...
Another popular option for storing environment variables is to rely on your deployment platform's variable storage. Most deployment environments ...
Read more >Working with Environment Variables in Node.js
An alternative way to load . This command-line tool will load a . env file, initialize the values using dotenv, and then execute...
Read more >Customizing Node.js .env files
Learn how to configure a Node.js application via environment variables and customize an .env file with new environment variables.
Read more >Using Environment Variables in Python for App Configuration ...
Set FLASK_ENV environment variable to "development" to enable debug mode for a Flask application; Provide the STRIPE_API_KEY environment ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix for this has been released under
pipenv==2022.3.24
When
PIPENV_QUIET=1
it doesn’t load the.env
file at all…