Giter VIP home page Giter VIP logo

Comments (5)

DarthSim avatar DarthSim commented on June 18, 2024

Looks like it's your local issue, I can't reproduce it. Overmind reloads every variable that specified in env files, and it loads a file from OVERMIND_ENV last. Please make sure about naming.

Procfile.test

redis_host: echo REDIS_HOST is $REDIS_HOST
$ OVERMIND_ENV=.env.local overmind s -f Procfile.test                                                                       16:17
system     | Listening at ...
system     | Tmux socket name: overmind-overmind-QYXtYFV8I_dsjtP6fysYJu
system     | Tmux session ID: overmind
redis_host | Started with pid 95600...
redis_host | REDIS_HOST is localhost
redis_host | Exited

from overmind.

constantm avatar constantm commented on June 18, 2024

Thanks for checking this out!

It looks like the problem is that I expected it to work like the Ruby implementation of dotenv, which loads .env, followed by .env.local. However, since you're using the Go implementation, it only loads .env, and ignores .env.local entirely.

Since Overmind is not written specifically for Ruby environments, I'll go ahead close this issue.

from overmind.

DarthSim avatar DarthSim commented on June 18, 2024

When you set OVERMIND_ENV=.env.local, overmind uses it as a last env file, so it should work like you expect. Unfortunately, I have no idea why it works for me and doesn't work for you :(

from overmind.

constantm avatar constantm commented on June 18, 2024

OVERMIND_ENV=.env.local overmind s works perfectly fine. :)

I expected it to load .env.local by running just overmind s, which it doesn't.

from overmind.

DarthSim avatar DarthSim commented on June 18, 2024

Oh, got it :) Yeah, you're right

from overmind.

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.