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

--env-file looks in parent directories #1318

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion runtime/reference/env_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ console.log(Deno.env.has("FIREBASE_AUTH_DOMAIN")); // true

Deno supports `.env` files. You can cause Deno to read environment variables
from `.env` using the `--env-file` flag: `deno run --env-file <script>`. This
will read `.env` by default; if you want or need to load environment variables
will read `.env` from the current working directory or the first parent
directory that contains one; if you want to load environment variables
from a different file, you can specify that file as a parameter to the flag.
Additionally, you can pass multiple `--env-file` flags (e.g.,
`deno run --env-file=.env.one --env-file=.env.two --allow-env <script>`) to load
Expand Down
Loading