Detail the possibility of using releases environment variables (#486)

This commit is contained in:
José Valim 2021-07-31 10:09:21 +02:00 committed by GitHub
parent 634907b49c
commit f3ea05b7ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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:

View file

@ -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,