Last active
July 27, 2022 20:51
-
-
Save rlb3/bdd4d33cd590e925553921ac70d5fbab to your computer and use it in GitHub Desktop.
Elixir slave nodes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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