forked from sunfishcode/hello-wasi-http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
20 lines (17 loc) · 794 Bytes
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
image: gitpod/workspace-rust
tasks:
- name: build and run
init: |
cargo install wasmtime-cli wasm-tools cargo-component
cargo component build
wasm-tools component wit target/wasm32-wasi/debug/hello_wasi_http.wasm
command: wasmtime serve -Scommon ./target/wasm32-wasi/debug/hello_wasi_http.wasm
- name: test
openMode: tab-after
command: |
gp ports await 8080
curl localhost:8080