Check if deployed esrom node is reachable before executing rpc.

This commit is contained in:
Pim Kunis 2019-10-24 16:33:52 +02:00
parent ad24ec96ac
commit 45b6408b6b
3 changed files with 9 additions and 2 deletions

View file

@ -23,7 +23,7 @@ defmodule Ui.Application do
def children(:host) do
{:ok, _} = Node.start(:"host@0.0.0.0")
Node.set_cookie(:tastycookie)
true = Node.connect(:"esrom@esrom.lan")
Node.connect(:"esrom@esrom.lan")
[]
end