mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-29 02:09:30 +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 -->
|
||||
|
||||
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
|
||||
|
||||
Livebook is primarily a Phoenix web application and can be setup as such:
|
||||
|
|
|
@ -24,7 +24,9 @@ end
|
|||
|
||||
config :livebook,
|
||||
: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,
|
||||
:default_runtime,
|
||||
|
|
Loading…
Reference in a new issue