mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 12:25:02 +01:00
vendor
This commit is contained in:
parent
12163d1338
commit
550b1644cb
363 changed files with 84081 additions and 16 deletions
18
egui/scripts/start_server.sh
Executable file
18
egui/scripts/start_server.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/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 docs && basic-http-server --addr 127.0.0.1:${PORT} .)
|
||||
# (cd docs && python3 -m http.server ${PORT} --bind 127.0.0.1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue