1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Move shell scripts into sh/ subfolder

This commit is contained in:
Emil Ernerfeldt
2021-05-09 13:28:24 +02:00
parent 38186fe23e
commit 6ad6f56cb1
9 changed files with 34 additions and 4 deletions

16
sh/start_server.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/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`.
echo "ensuring basic-http-server is installed..."
cargo install basic-http-server
echo "staritng server..."
echo "serving at http://localhost:8888"
(cd docs && basic-http-server --addr 127.0.0.1:8888 .)
# (cd docs && python3 -m http.server 8888 --bind 127.0.0.1)