Use basic-http-server instead of requiring python3

This commit is contained in:
Emil Ernerfeldt 2021-02-21 12:57:34 +01:00
parent 962d81d4eb
commit c44a133d97
2 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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)