Giter VIP home page Giter VIP logo

Comments (4)

johnae avatar johnae commented on August 22, 2024

Apparently this feature was up voted when implemented... I don't really understand why since dotenv solves the, i.m.o, mess of having env vars from all kinds of places you don't even know of sometimes. Why not have it all in the same place?

Anyway I forked the repo and made the change (which is obviously extremely simple). Here it is:
johnae@0556d5e

from dotenv.

bkeepers avatar bkeepers commented on August 22, 2024

See #38. I'm not against changing how this is implemented, it just needs to be done properly.

and honestly, i.m.o, I don't think NOT overwriting keys in production is a bad default.

I disagree. The deployment environment should ALWAYS have the final say. dotenv is primary aimed at solving the problem in development. In production, it's really easy to just set your config options in the environment.

from dotenv.

johnae avatar johnae commented on August 22, 2024

Well I guess we disagree, at least in part. I like the fact that you can now have the same variables defined in the same way for both dev and prod. That way it is less confusing where the variables come from. We store all config in a config-repo where we've got development and production stuff defined. It's all in the same place and gets deployed when the apps are deployed, or synced automatically in development. I could understand why some developers would want to set vars on the command line and expect them to not be overwritten but in production - not really. Anyway, perhaps someone wants that too - I realize people do things differently :-).

Sorry for missing the existing issue, my bad. Anyway - a configuration option or something for this would be a very nice feature.

from dotenv.

bkeepers avatar bkeepers commented on August 22, 2024

Here's more of the philosophy that inspires dotenv: http://12factor.net/config

Anyway - a configuration option or something for this would be a very nice feature.

Pull requests welcome.

from dotenv.

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.