mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 21:16:26 +08:00
Allow configuring desktop env vars (#1676)
This commit is contained in:
parent
8f92661918
commit
1e66243ad9
3 changed files with 17 additions and 0 deletions
|
@ -231,6 +231,15 @@ The following environment variables configure Livebook:
|
||||||
|
|
||||||
<!-- Environment variables -->
|
<!-- 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
|
If running Livebook via the command line, run `livebook server --help` to see
|
||||||
all CLI-specific options.
|
all CLI-specific options.
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
if exist "!USERPROFILE!\.livebookdesktop.bat" (
|
||||||
|
call "!USERPROFILE!\.livebookdesktop.bat"
|
||||||
|
)
|
||||||
|
|
||||||
set RELEASE_NODE=livebook_app
|
set RELEASE_NODE=livebook_app
|
||||||
set RELEASE_MODE=interactive
|
set RELEASE_MODE=interactive
|
||||||
set MIX_ARCHIVES=!RELEASE_ROOT!\vendor\archives
|
set MIX_ARCHIVES=!RELEASE_ROOT!\vendor\archives
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
if [ -f "$HOME/.livebookdesktop.sh" ]; then
|
||||||
|
. "$HOME/.livebookdesktop.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
export RELEASE_NODE=livebook_app
|
export RELEASE_NODE=livebook_app
|
||||||
export RELEASE_MODE=interactive
|
export RELEASE_MODE=interactive
|
||||||
export MIX_ARCHIVES="${RELEASE_ROOT}/vendor/archives"
|
export MIX_ARCHIVES="${RELEASE_ROOT}/vendor/archives"
|
||||||
|
|
Loading…
Add table
Reference in a new issue