Skip to content

Commit c7d11bb

Browse files
committed
Merge branch 'main' of github.com:RunestoneInteractive/rs
2 parents e112d74 + ad331d7 commit c7d11bb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/source/environmental_vars.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ Make a .env File
1111
You need to make a ``.env`` folder in the root level of your repository to define environmental variables.
1212
There is already a ``sample.env`` file in the repository root, you should copy that sample into a file named ``.env``.
1313

14-
The ``.env`` file is read by docker-compose and used to set environment variables in the docker containers. ``uv run`` also automatically reads it on the host side.
14+
The ``.env`` file is read by docker-compose and used to set environment variables in the docker containers. ``uv run`` can be set to automatically read the env file by setting the ``UV_ENV_FILE`` variable in your login profile (.bashrc, config.fish, .zshrc, etc) to point to the ``.env`` file. Add the following line to your login profile:
15+
16+
```
17+
export UV_ENV_FILE=".env"
18+
```
1519

1620
.. note::
1721
If you run servers without ``uv run`` (for example after activating the venv with ``source .venv/bin/activate``), the ``.env`` file is not auto-loaded, so you will need to manually define the host (h) environment variables listed below in your login profile (.bashrc, config.fish, .zshrc, etc), or use ``uv run`` which loads ``.env`` for you.

0 commit comments

Comments
 (0)