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

Option to skip reading .env? #28

Open
evandam opened this issue Dec 15, 2021 · 3 comments · May be fixed by #34
Open

Option to skip reading .env? #28

evandam opened this issue Dec 15, 2021 · 3 comments · May be fixed by #34

Comments

@evandam
Copy link

evandam commented Dec 15, 2021

Hi folks,

Would it be possible to add a flag that skips reading a local .env file? It seems to get loaded no matter what, which isn't always desired.

It would also be good to avoid setting things like $PORT too

Example:

Procfile

test: sh -c 'echo FOO is $FOO'

.env

FOO=BAR
❯ hivemind -l test
test | Running...
test | FOO is bar
test | Process exited
@evandam
Copy link
Author

evandam commented Jan 12, 2022

@DarthSim any thoughts on this? Thanks!

@scalp42
Copy link

scalp42 commented Jan 12, 2022

Same request here, some folks use dotenv for example where a more complex approach around env files is needed.

It would be awesome 👏

@scalp42
Copy link

scalp42 commented Mar 26, 2022

@DarthSim any chance? 😅

agis added a commit to clerk/hivemind that referenced this issue Sep 22, 2023
This patch adds supports for skipping loading the `.env` file, by
setting the HIVEMIND_SKIP_ENV environment variable. For example:

    $ HIVEMIND_SKIP_ENV=1 hivemind

Resolves DarthSim#28.
@agis agis linked a pull request Sep 22, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants