From 5a56281d6bd0d05ea7be9e59ea5eae718e083761 Mon Sep 17 00:00:00 2001 From: Mirko Rainer <52899592+mirkoRainer@users.noreply.github.com> Date: Tue, 4 Jan 2022 19:30:09 -0500 Subject: [PATCH] Python SimpleHTTPServer Add a note that Python provides a simple http server for local dev. --- book/src/webbuild.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/webbuild.md b/book/src/webbuild.md index 01fa8207..723d2ac3 100644 --- a/book/src/webbuild.md +++ b/book/src/webbuild.md @@ -95,8 +95,8 @@ In your `wasm` folder, you need to make an HTML page to host/launch your applica You can't run WASM from a local file source (presumably for security reasons). You need to put it into a web server, and run it from there. If you have web hosting, copy your `wasm` folder to wherever you want it. You can then open the web server URL in a browser, and your game runs. -If you *don't* have web hosting, you need to install a local webserver, and serve it from there. +If you *don't* have web hosting, you need to install a local webserver, and serve it from there. (If you have Python installed you can run `python -m SimpleHTTPServer` from the `wasm` folder.) ## Help Wanted! -I'd love to integrate this into `cargo web` or similar, to provide a simple process for compiling and serving your games. I haven't made this work yet. If anyone would like to help, please head over to [My Github](https://github.com/thebracket/rustrogueliketutorial) and get in touch with me! \ No newline at end of file +I'd love to integrate this into `cargo web` or similar, to provide a simple process for compiling and serving your games. I haven't made this work yet. If anyone would like to help, please head over to [My Github](https://github.com/thebracket/rustrogueliketutorial) and get in touch with me!