Git Product home page Git Product logo

Comments (7)

aotd1 avatar aotd1 commented on May 24, 2024 8

It can be achieved using the IDE notification dialog.
If .env file exists in project, plugin can propose popup dialog to automatically add it in all / specific run configuration (s).

from envfile.

ashald avatar ashald commented on May 24, 2024 2

At the first glance this sounds as a cool idea but on a 2nd thought I'm wondering whether this is really a good thing to do. After all, there are too many questions and unclarity. What if there are several .env files? It might be non-intuitive where variables are coming from and so on. I believe you can try to achieve similar functionality by editing the run configuration template you use. If that sounds good for you please give it a try and let me know how it worked.

from envfile.

ashald avatar ashald commented on May 24, 2024 1

Any feedback on proposed workaround with run configuration templates?

from envfile.

iddan avatar iddan commented on May 24, 2024 1

The common practice is to only load a file with the exact name .env. Other .env files should be consumed explicitly

from envfile.

ashald avatar ashald commented on May 24, 2024

Does the workaround proposed here works to enable the desired behavior #55 (comment) ?

from envfile.

iddan avatar iddan commented on May 24, 2024

Yeah, it's more of a matter of defaults.

from envfile.

devurandom avatar devurandom commented on May 24, 2024

I believe you can try to achieve similar functionality by editing the run configuration template you use. If that sounds good for you please give it a try and let me know how it worked.

Thanks for the hint! I tried it (https://www.jetbrains.com/help/idea/run-debug-configuration.html#templates explains where to find the config) and it works very well. I especially like that (after you have figured out how to do it) it is very obvious which variables from which files are loaded where -- no automagic. :)

from envfile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.