This file contains 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
# machine 1 | |
# start up with `iex --name m1@127.0.0.1 --cookie greeter` | |
# This isn't really necessary but it won't hurt anything | |
Node.connect :"m1@127.0.0.1" | |
# All `Node.connect/1` calls can go to the same machine and every machine | |
# in the cluster will automatically be connected. | |
# machine 2 | |
# start up with `iex --name m2@127.0.0.1 --cookie greeter` |