Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary releases? #64

Open
coolaj86 opened this issue Oct 19, 2020 · 3 comments
Open

Binary releases? #64

coolaj86 opened this issue Oct 19, 2020 · 3 comments

Comments

@coolaj86
Copy link

It would be really awesome to have this as a binary that could run like this:

dotenv .env -- someprogram --foo bar

Do you have any interest in supporting that? I'd be willing to help.

@shesek
Copy link

shesek commented Nov 24, 2020

Why not (source .env && someprogram --foo bar)? (requires using export in your .env files to make them shell-compatible, which dotenv accepts too. use . instead of source if you're using sh.)

@coolaj86
Copy link
Author

  1. It's not a cross-platform approach.
  2. It requires a shell, which you don't always have with service managers like systemd.

@mhutter
Copy link

mhutter commented Dec 29, 2021

It's not a cross-platform approach.

That's true but every platform offers built-in tools to read ENV vars from a file

It requires a shell, which you don't always have with service managers like systemd.

Most service manager already support reading env vars from a file. For systemd, there is EnvironmentFile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants