Skip to content

Commit 274ce1f

Browse files
committed
[FAB-13381] Update dev mode documentation
- Update a chaincode path and keep it a bit vague about the exact location of the config file. - Add an environment variable when start peer dev-mode Change-Id: Ie5ef5f1399efa5960373b984223209132c72cd96 Signed-off-by: kuro1 <412681778@qq.com>
1 parent d6204d7 commit 274ce1f

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

docs/source/peer-chaincode-devmode.rst

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,29 @@ Start the orderer
2121

2222
ORDERER_GENERAL_GENESISPROFILE=SampleDevModeSolo orderer
2323

24-
The above starts the orderer in the local environment the orderer
25-
configuration as defined in ``sampleconfig/orderer.yaml`` with the
26-
genesisprofile directive overridden to use the SampleDevModeSolo profile
27-
for bootstrapping the network.
24+
The above starts the orderer with the SampleDevModeSolo profile.
2825

2926
Start the peer in dev mode
3027
--------------------------
3128

3229
::
3330

34-
peer node start --peer-chaincodedev=true
31+
CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 peer node start --peer-chaincodedev=true
3532

36-
The above command starts the peer using the default ``sampleconfig/msp``
37-
MSP. The ``--peer-chaincodedev=true`` puts it in “dev” mode.
33+
The above command starts the peer using the default MSP.
34+
The ``--peer-chaincodedev=true`` puts it in “dev” mode.
3835

3936
Create channels ch1 and ch2
4037
---------------------------
4138

42-
Generate the transactions for creating the channels using ``configtxgen`` tool.
39+
Generate the transactions for creating the channels using the ``configtxgen``
40+
tool with the SampleSingleMSPChannel profile.
4341

4442
::
4543

4644
configtxgen -channelID ch1 -outputCreateChannelTx ch1.tx -profile SampleSingleMSPChannel
4745
configtxgen -channelID ch2 -outputCreateChannelTx ch2.tx -profile SampleSingleMSPChannel
4846

49-
where SampleSingleMSPChannel is a channel profile in ``sampleconfig/configtx.yaml``
50-
5147
::
5248

5349
peer channel create -o 127.0.0.1:7050 -c ch1 -f ch1.tx
@@ -68,7 +64,7 @@ Start the chaincode
6864

6965
::
7066

71-
cd examples/chaincode/go/chaincode_example02/cmd
67+
cd examples/chaincode/go/example02/cmd
7268
go build -o example02
7369
CORE_CHAINCODE_LOGLEVEL=debug CORE_PEER_ADDRESS=127.0.0.1:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./example02
7470

0 commit comments

Comments
 (0)