Use basic-http-server instead of requiring python3
This commit is contained in:
parent
962d81d4eb
commit
c44a133d97
|
@ -5,3 +5,6 @@ set -eu
|
|||
rustup target add wasm32-unknown-unknown
|
||||
cargo install -f wasm-bindgen-cli
|
||||
cargo update
|
||||
|
||||
# For local tests with `./start_server`:
|
||||
cargo install basic-http-server
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
(cd docs && python3 -m http.server 8080 --bind 127.0.0.1)
|
||||
# Starts a local web-server that servs the contents of the `doc/` folder,
|
||||
# which is the folder to where the web version is compiled.
|
||||
|
||||
cargo install basic-http-server
|
||||
|
||||
(cd docs && basic-http-server --addr 127.0.0.1:8080 .)
|
||||
# (cd docs && python3 -m http.server 8080 --bind 127.0.0.1)
|
||||
|
|
Loading…
Reference in a new issue