doc: rename network to cluster
This commit is contained in:
@ -77,26 +77,26 @@ console.log(solanaWeb3);
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Local Network
|
## Local Network
|
||||||
The `solana-localnet` program is provided to easily start a test Solana network
|
The `solana-localnet` program is provided to easily start a test Solana cluster
|
||||||
locally on your machine. Docker must be installed. The JSON RPC endpoint of
|
locally on your machine. Docker must be installed. The JSON RPC endpoint of
|
||||||
the local network is `http://localhost:8899`.
|
the local cluster is `http://localhost:8899`.
|
||||||
|
|
||||||
To start, first fetch the latest Docker image by running:
|
To start, first fetch the latest Docker image by running:
|
||||||
```bash
|
```bash
|
||||||
$ npx solana-localnet update
|
$ npx solana-localnet update
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run the following command to start the network
|
Then run the following command to start the cluster
|
||||||
```bash
|
```bash
|
||||||
$ npx solana-localnet up
|
$ npx solana-localnet up
|
||||||
```
|
```
|
||||||
|
|
||||||
While the network is running logs are available with:
|
While the cluster is running logs are available with:
|
||||||
```bash
|
```bash
|
||||||
$ npx solana-localnet logs -f
|
$ npx solana-localnet logs -f
|
||||||
```
|
```
|
||||||
|
|
||||||
Stop the network with:
|
Stop the cluster with:
|
||||||
```bash
|
```bash
|
||||||
$ npx solana-localnet down
|
$ npx solana-localnet down
|
||||||
```
|
```
|
||||||
|
@ -26,9 +26,9 @@ usage: $0 [update|up|down|logs|deploy] [command-specific options]
|
|||||||
Operate a local testnet
|
Operate a local testnet
|
||||||
|
|
||||||
update - Update the image from dockerhub.com
|
update - Update the image from dockerhub.com
|
||||||
up - Start the network
|
up - Start the cluster
|
||||||
down - Stop the network
|
down - Stop the cluster
|
||||||
logs - Display network logging
|
logs - Display cluster logging
|
||||||
deploy - Deploy a native program.
|
deploy - Deploy a native program.
|
||||||
|
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ Operate a local testnet
|
|||||||
deploy-specific options:
|
deploy-specific options:
|
||||||
program - The program to deploy.
|
program - The program to deploy.
|
||||||
|
|
||||||
Note that deployments are discarded on network stop
|
Note that deployments are discarded on cluster stop
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
exit $exitcode
|
exit $exitcode
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
Before trying any of the examples in this directory please populate the `lib/`
|
Before trying any of the examples in this directory please populate the `lib/`
|
||||||
directory by running `npm install`.
|
directory by running `npm install`.
|
||||||
|
|
||||||
Additionally most of the examples attempt to connect to a local network. Start
|
Additionally most of the examples attempt to connect to a local cluster. Start
|
||||||
your local network first by running:
|
your local cluster first by running:
|
||||||
```bash
|
```bash
|
||||||
$ npx solana-localnet update
|
$ npx solana-localnet update
|
||||||
$ npx solana-localnet up
|
$ npx solana-localnet up
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The connection url to use when running unit tests against a live network
|
* The connection url to use when running unit tests against a live cluster
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const url = 'http://localhost:8899/';
|
export const url = 'http://localhost:8899/';
|
||||||
|
Reference in New Issue
Block a user