Skip to content

Commit 3e88236

Browse files
authored
fix: get start on gitpod failed (solana-labs#381)
1 parent 4a07bd5 commit 3e88236

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.gitpod.Dockerfile

-4
This file was deleted.

.gitpod.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
image:
2-
file: .gitpod.Dockerfile
31
tasks:
42
- init: |
53
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)
85
npm install
96
npm run build:program-rust
107
command: |

README-gitpod.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,19 @@ The project comprises of:
3636
Using this example in Gitpod connects to the public Solana `devnet` cluster. Use
3737
the environment variable `CLUSTER` to choose a different Solana cluster.
3838

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+
3949
Run the client to load and interact with the on-chain program:
4050
```bash
41-
$ npm run start
51+
npm run start
4252
```
4353

4454
The remaining sections of this document point back to the non-Gitpod version of

0 commit comments

Comments
 (0)