Skip to content

Commit c6f6006

Browse files
committed
test deployment guide
1 parent 22e56da commit c6f6006

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

resources/DEPLOY.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ Two environment variables can be passed to `rebar3` when deploying an applicatio
99
A full call to the `deploy` function of the rebar3 Grisp plugin for an Achlys application could look like :
1010

1111
`IP=X.X.X.X NAME=board_name rebar3 grisp deploy -n app_name -v 0.1.0`
12+
13+
# Test shell deployment
14+
15+
A full call to the command below dynamically assigns the correct local IPv4 address to Partisan and the local short name :
16+
17+
`NAME=$(echo hostname -s) PEER_IP=$(ifconfig | grep "inet " | grep -m 1 -Fv 127.0.0.1 | awk '{print $2}' | sed 's/\./,/g') IP=$(ifconfig | grep "inet " | grep -m 1 -Fv 127.0.0.1 | awk '{print $2}') rebar3 as test shell --sname achlys --setcookie MyCookie --apps achlys`
18+
19+
Once the `rebar3 shell` is launched, the Partisan configuration can be verified using :
20+
21+
`(lasp_peer_service:manager()):myself()`

0 commit comments

Comments
 (0)