Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp authored Jan 19, 2024
1 parent da15b15 commit b901584
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,26 @@ Node.connect(node)

Now you should see a site listed in the admin home page.

6. (Optional) Automically connect the nodes by creating a `.iex.exs` file in the root of each repository:

In the beacon repo:

```elixir
{:ok, hostname} = :inet.gethostname()
node = :"admin@#{List.to_string(hostname)}"
Node.connect(node)
```

In the beacon_live_admin repo:

```elixir
{:ok, hostname} = :inet.gethostname()
node = :"core@#{List.to_string(hostname)}"
Node.connect(node)
```

This way you don't need to manually connect the nodes as shown on step 5.

## Looking for help with your Elixir project?

<img src="assets/images/dockyard_logo.png" width="256" alt="DockYard logo">
Expand Down

0 comments on commit b901584

Please sign in to comment.