File tree 3 files changed +12
-9
lines changed
3 files changed +12
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- image :
2
- file : .gitpod.Dockerfile
3
1
tasks :
4
2
- init : |
5
3
sh -c "$(curl -sSfL https://release.solana.com/v1.8.2/install)"
6
- export PATH=~/.local/share/solana/install/active_release/bin:$PATH
7
- gp env PATH=~/.local/share/solana/install/active_release/bin:$PATH
4
+ eval $(gp env -e PATH=$HOME/.local/share/solana/install/active_release/bin:$PATH)
8
5
npm install
9
6
npm run build:program-rust
10
7
command: |
Original file line number Diff line number Diff line change @@ -36,9 +36,19 @@ The project comprises of:
36
36
Using this example in Gitpod connects to the public Solana ` devnet ` cluster. Use
37
37
the environment variable ` CLUSTER ` to choose a different Solana cluster.
38
38
39
+ Start a local Solana cluster:
40
+ ``` bash
41
+ solana-test-validator
42
+ ```
43
+
44
+ Deploy the on-chain program:
45
+ ``` bash
46
+ solana program deploy ./dist/program/helloworld.so
47
+ ```
48
+
39
49
Run the client to load and interact with the on-chain program:
40
50
``` bash
41
- $ npm run start
51
+ npm run start
42
52
```
43
53
44
54
The remaining sections of this document point back to the non-Gitpod version of
You can’t perform that action at this time.
0 commit comments