mdBook/.gitpod.yml

13 lines
293 B
YAML
Raw Normal View History

2019-08-21 13:53:13 +08:00
ports:
- port: 3000
onOpen: open-preview
- port: 3001
onOpen: ignore
tasks:
- init: cargo build
command: >
cd ./book-example &&
../target/debug/mdbook serve \
--hostname 0.0.0.0 \
--websocket-url $(echo $GITPOD_WORKSPACE_URL | sed 's/https:\/\//wss:\/\/3001-/g')