Skip to content

Python SimpleHTTPServer #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/src/webbuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
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!