mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
peer address export
environment variable should be exported to take effect i guess...
This commit is contained in:
parent
29ff95e2c6
commit
deea321aa2
1 changed files with 3 additions and 3 deletions
|
|
@ -113,7 +113,7 @@ function join_org_peers() {
|
|||
--tls --cafile /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/msp/tlscacerts/org0-tls-ca.pem
|
||||
|
||||
# Join peer1 to the channel.
|
||||
CORE_PEER_ADDRESS='${org}'-peer1:7051 \
|
||||
export CORE_PEER_ADDRESS='${org}'-peer1:7051
|
||||
peer channel \
|
||||
join \
|
||||
-b genesis_block.pb \
|
||||
|
|
@ -121,7 +121,7 @@ function join_org_peers() {
|
|||
--tls --cafile /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/msp/tlscacerts/org0-tls-ca.pem
|
||||
|
||||
# Join peer2 to the channel.
|
||||
CORE_PEER_ADDRESS='${org}'-peer2:7051 \
|
||||
export CORE_PEER_ADDRESS='${org}'-peer2:7051
|
||||
peer channel \
|
||||
join \
|
||||
-b genesis_block.pb \
|
||||
|
|
@ -198,4 +198,4 @@ function channel_up() {
|
|||
# error to be returned from the channel up. We might want to render the warning in
|
||||
# this case to indicate that the call was made but had a nonzero exit.
|
||||
# update_anchor_peers peer1
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue