mirror of https://github.com/emilk/egui.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
520 B
18 lines
520 B
#!/usr/bin/env bash
|
|
set -eu
|
|
script_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
|
cd "$script_path/.."
|
|
|
|
# Starts a local web-server that serves the contents of the `doc/` folder,
|
|
# i.e. the web-version of `egui_demo_app`.
|
|
|
|
PORT=8888
|
|
|
|
echo "ensuring basic-http-server is installed…"
|
|
cargo install basic-http-server
|
|
|
|
echo "starting server…"
|
|
echo "serving at http://localhost:${PORT}"
|
|
|
|
(cd web_demo && basic-http-server --addr 0.0.0.0:${PORT} .)
|
|
# (cd web_demo && python3 -m http.server ${PORT} --bind 0.0.0.0)
|
|
|