egui/start_server.sh

13 lines
322 B
Bash
Raw Normal View History

2020-04-12 10:07:51 +00:00
#!/bin/bash
set -eu
2021-02-21 09:12:08 +00:00
# Starts a local web-server that servs the contents of the `doc/` folder,
# i.e. the web-version of `egui_demo_app`.
cargo install basic-http-server
2020-04-23 07:50:03 +00:00
echo "open http://localhost:8888"
2021-02-21 09:12:08 +00:00
(cd docs && basic-http-server --addr 127.0.0.1:8888 .)
# (cd docs && python3 -m http.server 8888 --bind 127.0.0.1)