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.

Support for .env files

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

First off I really like poetry- I’d actually only recently migrated over to pipenv but I already see the advantages of poetry and would ideally like to use it full time.

I primarily work with Django and other web frameworks that can require a large amount of configuration which- when following 12 factor app practices- involves lots of environment variables that necessitates the use of a .env file.

Is there a possibility of adding in .env file support, specifically for poetry’s run command so that the resulting command runs both in the virtualenv and with the environment as configured in the .env file?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:94
  • Comments:71 (11 by maintainers)

github_iconTop GitHub Comments

178reactions
sdispatercommented, Mar 2, 2019

Like I said above this is beyond the scope of Poetry so I am closing this issue.

115reactions
sdispatercommented, Jul 27, 2018

I don’t think this is in the scope of Poetry.

Since Poetry is not configured via environment variables there are no reasons for it to load a .env file.

If the libraries you use need it, it’s their responsability to load it not Poetry’s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

env files support - IntelliJ IDEs Plugin - JetBrains Marketplace
Go to declaration(in . env file) and usages(in code), by Ctrl(Cmd)+click or hot key(Ctrl(Cmd)-B, etc.)
Read more >
Managing .env files and setting variables - Prisma
Learn how to manage .env files and set environment variables.
Read more >
We need to talk about the .env | Platform.sh
.env files are a surrogate environment variable for local development only, but should never be committed to Git. Understand your application!
Read more >
Resolution of environment variables - Serverless Framework
The framework loads variables from only one .env file (if stage-specific .env is found, default .env is not loaded); The framework does not...
Read more >
Environment variables in Compose | Docker Documentation
If you have multiple environment variables, you can substitute them by adding them to a default environment variable file named .env or by...
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