Allow configuring desktop env vars (#1676)

This commit is contained in:
José Valim 2023-02-02 10:52:16 +01:00 committed by GitHub
parent 8f92661918
commit 1e66243ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View file

@ -231,6 +231,15 @@ The following environment variables configure Livebook:
<!-- Environment variables -->
When running Livebook Desktop, Livebook will invoke on boot a file named
`~/.livebookdesktop.sh` on macOS or `%USERPROFILE%\.livebookdesktop.bat`
on Windows. This file can set environment variables used by Livebook,
such as [the `PATH` environment variable](https://en.wikipedia.org/wiki/PATH_(variable)),
or to configure the Erlang VM, for instance, by setting
`ERL_AFLAGS="-proto_dist inet6_tcp"` if you need Livebook to run over IPv6.
Be careful when modifying said files, Livebook may be unable to start if
configured incorrectly.
If running Livebook via the command line, run `livebook server --help` to see
all CLI-specific options.

View file

@ -1,3 +1,7 @@
if exist "!USERPROFILE!\.livebookdesktop.bat" (
call "!USERPROFILE!\.livebookdesktop.bat"
)
set RELEASE_NODE=livebook_app
set RELEASE_MODE=interactive
set MIX_ARCHIVES=!RELEASE_ROOT!\vendor\archives

View file

@ -1,3 +1,7 @@
if [ -f "$HOME/.livebookdesktop.sh" ]; then
. "$HOME/.livebookdesktop.sh"
fi
export RELEASE_NODE=livebook_app
export RELEASE_MODE=interactive
export MIX_ARCHIVES="${RELEASE_ROOT}/vendor/archives"