question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow more control over .env loading message

See original GitHub issue

I’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 or PIPENV_DOTENV_LOCATION is set I don’t want error messages about those issues to be missed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:10

github_iconTop GitHub Comments

2reactions
matteiuscommented, Mar 23, 2022

The fix for this has been released under pipenv==2022.3.24

1reaction
nomiscommented, Mar 26, 2022

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found