mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-25 04:46:04 +08:00
Small improvements
This commit is contained in:
parent
58d8aa831e
commit
eea5aa56f2
1 changed files with 3 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ Let's build a solution that uses Fly's API to discover that node name.
|
|||
2. Add this Fly.io discovery module to your notebook:
|
||||
|
||||
```elixir
|
||||
# Add {:req, "~> 0.4"} to your notebook dependencies
|
||||
# Add {:req, "~> 0.5"} to your notebook dependencies
|
||||
|
||||
defmodule Fly do
|
||||
def discover_node() do
|
||||
|
|
@ -208,6 +208,8 @@ Set the `RELEASE_COOKIE` environment variable on your production machines to ens
|
|||
|
||||
Use the same value for your `PHOENIX_APP_COOKIE` [Livebook secret](#set-up-environment-secrets).
|
||||
|
||||
Learn more about [setting the cookie of an Elixir release here](https://hexdocs.pm/mix/Mix.Tasks.Release.html#module-options).
|
||||
|
||||
#### Enable long node names
|
||||
|
||||
Livebook requires long node names. Configure the `RELEASE_DISTRIBUTION` environment variable inside your app's `rel/env.sh.eex` like this:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue