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

using env_file #150

Open
baxterjimuk opened this issue Nov 27, 2022 · 0 comments
Open

using env_file #150

baxterjimuk opened this issue Nov 27, 2022 · 0 comments

Comments

@baxterjimuk
Copy link

Does it not work if I have my .env file in .gitignore? No matter what I do I always end up with:
Error: Error: ENOENT: no such file or directory, open '/.env'
My .env file is at the root of my project. I've tried both the following but none seems to work:

env_file: ".env"
env_file: "/.env"

If anyone want to know why my .env file is in .gitignore, well that's what I was being taught all along because .env contains sensitive info and shouldn't be pushed to GitHub.

In the end I resort to just using env and it works but it's still a hassle since I have to provide the secrets in my repository. It'd be better if the env_file method works.

I'm a newbie and this is my first ever question in GitHub so pardon if there's anything wrong. Thank you.

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

1 participant