Skip to content

Instantly share code, notes, and snippets.

@rlb3
Last active July 27, 2022 20:51
Show Gist options
  • Save rlb3/bdd4d33cd590e925553921ac70d5fbab to your computer and use it in GitHub Desktop.
Save rlb3/bdd4d33cd590e925553921ac70d5fbab to your computer and use it in GitHub Desktop.
Elixir slave nodes
iex --sname a
{:ok, hostname} = :inet.gethostname()
:slave.start(hostname, :b)
:rpc.block_call(hostname, :code, :add_paths, [:code.get_path()])
:rpc.block_call(hostname, :application, :start, [:compiler])
:rpc.block_call(hostname, :application, :start, [:elixir])
:rpc.block_call(hostname, :application, :start, [:iex])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment