mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-30 18:58:45 +08:00
Detail the possibility of using releases environment variables (#486)
This commit is contained in:
parent
634907b49c
commit
f3ea05b7ee
2 changed files with 8 additions and 1 deletions
|
@ -151,6 +151,11 @@ The following environment variables configure Livebook:
|
||||||
|
|
||||||
<!-- Environment variables -->
|
<!-- Environment variables -->
|
||||||
|
|
||||||
|
If running Livebook as a Docker image or an Elixir release, [the environment
|
||||||
|
variables used by Elixir releases are also available]
|
||||||
|
(https://hexdocs.pm/mix/Mix.Tasks.Release.html#module-environment-variables).
|
||||||
|
The notables ones are `RELEASE_NODE` and `RELEASE_DISTRIBUTION`.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
Livebook is primarily a Phoenix web application and can be setup as such:
|
Livebook is primarily a Phoenix web application and can be setup as such:
|
||||||
|
|
|
@ -24,7 +24,9 @@ end
|
||||||
|
|
||||||
config :livebook,
|
config :livebook,
|
||||||
:cookie,
|
:cookie,
|
||||||
Livebook.Config.cookie!("LIVEBOOK_COOKIE") || Livebook.Utils.random_cookie()
|
Livebook.Config.cookie!("LIVEBOOK_COOKIE") ||
|
||||||
|
Livebook.Config.cookie!("RELEASE_COOKIE") ||
|
||||||
|
Livebook.Utils.random_cookie()
|
||||||
|
|
||||||
config :livebook,
|
config :livebook,
|
||||||
:default_runtime,
|
:default_runtime,
|
||||||
|
|
Loading…
Reference in a new issue