Create rebar3 app:
Create: $rebar3 new release <app name>
Compile: $rebar3 compile
Run: $rebar3 shell
Update dependency: $rebar3 update
Package: rebar3 as prod release
Run the package: $/<app name>/bin/<app name> foreground
Publishing to hex: $ rebar3 hex publish -r <test_repo>
ref: https://rebar3.readme.io/docs/commands
Start a node in Erlang:
Creating node:
$erl -name server@192.168.0.149 -setcookie mathcluster
$erl -name client@192.168.0.90 -setcookie mathcluster
Test the connection:
>net_adm:ping('server@192.168.0.149').
List the nodes: >nodes().
No comments:
Post a Comment