Skip to content

Commit a3fcedf

Browse files
authored
Clarify RELEASE_NODE example in README.md
1 parent d36d83e commit a3fcedf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,20 @@ children = [
2525
]
2626
```
2727

28+
Then in your config file, add:
29+
30+
```elixir
31+
config :my_app, :dns_cluster_query, ["app.internal"]
32+
```
33+
2834
If you are deploying with Elixir releases, the release must be set to support longnames and
29-
the node must be named. These can be set in your `rel/env.sh.eex` file:
35+
the node must be named, using their IP address by default. These can be set in your
36+
`rel/env.sh.eex` file:
3037

3138
```sh
3239
#!/bin/sh
3340
export RELEASE_DISTRIBUTION=name
34-
export RELEASE_NODE="myapp@fully-qualified-host-or-ip"
41+
export RELEASE_NODE="myapp@fully-qualified-ip"
3542
```
3643

3744
By default, nodes from the same release will have the same cookie. If you want different

0 commit comments

Comments
 (0)