Skip to content

Commit 5a260b3

Browse files
committed
Remove need for simple-http-server
Just open the website in the browser.
1 parent 4570c14 commit 5a260b3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

run_webserver.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ cd "$(dirname "$0")"
88

99
zig build generate-website
1010

11-
simple-http-server --open --ip 127.0.0.1 --port 8007 --index -- ./www/
11+
if [ -x "$(command -v xdg-open)" ]; then
12+
xdg-open ./www/index.html
13+
elif [ -x "$(command -v open)" ]; then
14+
open ./www/index.html
15+
fi

0 commit comments

Comments
 (0)