@@ -20,7 +20,7 @@ PARTISAN_EQWALIZER = 0
20
20
OTPVSN = $(shell erl -eval 'erlang:display(erlang:system_info(otp_release) ), halt().' -noshell)
21
21
22
22
.PHONY : compile-no-deps alt-test core-test otp-test test docs xref dialyzer-run dialyzer-quick dialyzer eqwalizer eqwalize-all\
23
- cleanplt upload-docs rel deps test plots spellcheck spellfix certs node1 node2 node3 node
23
+ cleanplt upload-docs rel deps test plots spellcheck spellfix certs node1 node2 node3 node checkssl
24
24
25
25
all : compile
26
26
@@ -160,39 +160,25 @@ logs:
160
160
# # Release targets
161
161
# #
162
162
163
+
163
164
node1 :
164
- RELX_REPLACE_OS_VARS=true \
165
- ERL_NODE_NAME=node1@127.0.0.1 \
166
- PARTISAN_PEER_PORT=10100 \
167
- _build/node/rel/partisan/bin/partisan console
165
+ ${REBAR} as node1 release
166
+ ERL_DIST_PORT=37781 _build/node1/rel/partisan/bin/partisan console
168
167
169
168
node2 :
170
- ${REBAR} as node release
171
- RELX_REPLACE_OS_VARS=true \
172
- ERL_NODE_NAME=node2@127.0.0.1 \
173
- PARTISAN_PEER_PORT=10200 \
174
- _build/node/rel/partisan/bin/partisan console
175
-
176
- node3 : export ERL_NODE_NAME=node3@127.0.0.1
177
- node3 : export PARTISAN_PEER_PORT=10300
178
- node3 : noderun
179
-
180
- # ERL_NODE_NAME=node4@127.0.0.1 make node
181
- node : noderun
182
- ifndef ERL_NODE_NAME
183
- $(error ERL_NODE_NAME is undefined)
184
- endif
185
- ifndef PARTISAN_PEER_PORT
186
- $(error PARTISAN_PEER_PORT is undefined)
187
- endif
188
- ${REBAR} as node release
189
- RELX_REPLACE_OS_VARS=true _build/node/rel/partisan/bin/partisan console
190
-
191
-
192
- noderun :
193
- ${REBAR} as node release
194
- RELX_REPLACE_OS_VARS=true _build/node/rel/partisan/bin/partisan console
169
+ ${REBAR} as node2 release
170
+ ERL_DIST_PORT=37782 _build/node2/rel/partisan/bin/partisan console
171
+
172
+ node3 :
173
+ ${REBAR} as node3 release
174
+ ERL_DIST_PORT=37783 _build/node3/rel/partisan/bin/partisan console
175
+
195
176
177
+ checkssl :
178
+ openssl s_client -connect localhost:10100 \
179
+ -cert config/_ssl/client/cert.pem \
180
+ -key config/_ssl/client/keycert.pem \
181
+ -CAfile config/_ssl/client/cacerts.pem
196
182
rel :
197
183
${REBAR} as test release
198
184
0 commit comments