Coder Social home page Coder Social logo

Comments (3)

bkeepers avatar bkeepers commented on August 24, 2024

Interpret my radio silence on this issue as indecision and not contempt. I've been trying to think through this, and I'm really undecided. dotenv was purely intended to be a development shim.

I feel like there are better ways of loading environment variables in production. In my ideal fantasy land, a project's repository should only contain information needed to for local development. Deployment is a separate concern and should be managed externally. I would put hostnames, production configuration, etc in a separate deployment repository (with some Chef/puppet to manage provisioning).

But…that's easy for me to say, because everything I work on is deployed to Heroku or internally at GitHub. Either way, I don't have to manage it and deal with deployment infrastructure. The reality is that most people are deploying Rails apps directly with capistrano. Everything needed by the app is managed in the same repo. No matter how much I try to discourage that, I understand that it is the easiest thing that works.

So I think I would like to push the dotenv-rails gem to encourage my ideal fantasy-land, but also release a dotenv-deployment gem that has capistrano recipes, multiple environment support, unicorn reloading and whatever else people think they need to deploy.

How does that sound?

from dotenv.

elskwid avatar elskwid commented on August 24, 2024

@bkeepers, it sounds like a great idea. So you want to break dotenv-rails and dotenv-deployment into repos? I like it. Point me at the repos and I'll help you get this stuff sorted out.

from dotenv.

afeld avatar afeld commented on August 24, 2024

FYI, Foreman supports running one-off processes (loading the .env files) with foreman run <command>.

/cc @dblock #76 (comment)

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.