Skip to content

Commit 93846dc

Browse files
authored
Merge pull request #316 from XinyuCRO/fix/devnet
fix(doc): Update local-devnet.md
2 parents d7b40b4 + 82ecc3b commit 93846dc

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

docs/getting-started/local-devnet.md

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ We will be using [pystarport](https://github.com/crypto-org-chain/chain-main/tre
1515

1616
## Install with Nix
1717

18-
19-
2018
### Install nix
2119

2220
Follow official instructions: https://nixos.org/download.html
@@ -33,33 +31,49 @@ $ cachix use crypto-com
3331

3432
### Install pystarport
3533

36-
Install the binded version, which install chain-maind together, and find it by the absolute path:
37-
38-
```
39-
$ nix-env -iA pystarport -f https://github.com/crypto-com/chain-main/archive/master.tar.gz
34+
```sh
35+
$ nix profile install github:crypto-com/pystarport
4036
```
4137

42-
Install the unbinded version of pystarport, which find whatever version of chain-maind it finds in `PATH`:
38+
The `pystarport` will be available at path `~/.nix-profile/bin/pystarport`
4339

44-
```
45-
$ nix-env -iA pystarport-unbind -f https://github.com/crypto-com/chain-main/archive/master.tar.gz
40+
### Install chain-maind
41+
42+
```sh
43+
$ nix profile install github:crypto-com/chain-main
4644
```
4745

48-
## Install pystarport manually
46+
The `chain-maind` will be available at path `~/.nix-profile/bin/chain-maind`
47+
48+
## Install manually
4949

5050
### Pre-requisites
5151

5252
- Python > 3.7.3
53+
- [pystarport](https://github.com/crypto-com/pystarport)
5354
- [chain-maind](https://github.com/crypto-org-chain/chain-main)
5455

55-
To install pystarport manually, run:
56+
### Install pystarport
5657

58+
```sh
59+
$ git clone https://github.com/crypto-com/pystarport.git
60+
$ cd pystarport
61+
$ pip install -e .
5762
```
63+
The `pystarport` will be available `/usr/local/bin/pystarport`
64+
65+
### Install chain-maind
66+
67+
```sh
5868
$ git clone https://github.com/crypto-org-chain/chain-main.git
5969
$ cd chain-main
60-
$ pip3 install pystarport
70+
$ make install
6171
```
6272

73+
The `chain-maind` will be available at `$GOPATH/bin`
74+
75+
###
76+
6377
## Customize your devnet
6478

6579
Jump to next section to start it without customization.

0 commit comments

Comments
 (0)