Coder Social home page Coder Social logo

Comments (3)

jetheredge avatar jetheredge commented on July 22, 2024

Looking into this further, it appears that I'm only getting the behavior I'm expecting in the Rails console, the workers and the web app are both incorrectly loading this, and after looking at the code it seems that this might not be expected behavior at all (it appears that the environment specific file is loaded before the .env file).

In light of this, my question is... is dotenv capable of setting defaults in the .env file and then overriding them in environment specific files, or do you simply go with either a single .env file or environment specific .env files?

from dotenv.

bkeepers avatar bkeepers commented on July 22, 2024

This issue is described in #45. Right now there is not a workaround for it. Once #95 ships, the dotenv-deployment gem should fix it by actually overriding local variables with the environment-specific version.

from dotenv.

jetheredge avatar jetheredge commented on July 22, 2024

Yeah, I saw #45 and this didn't feel quite the same, but I think that I was using dotenv in a way that it was not designed to work. Thanks.

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.