How To Run HTML files Locally With Python And Without Internet
First published at 22:25 UTC on February 2nd, 2020.
MORE
Category | Education |
Sensitivity | Normal - Content that is suitable for ages 16 and over |
DISCUSS THIS VIDEO
An error has occurred whilst processing your request!
If the issue persists, then please contact us at [email protected].
This advertisement has been selected by the video's creator, .
This advertisement has been selected by BitChute. Displaying these adverts helps support the growth and sustainability of the platform.
This advertisement has been sourced through third-party advertising partners on behalf of BitChute. Displaying these adverts helps support the growth and sustainability of the platform.
For more information on how BitChute processes your data, and to learn how to opt out of advertising, see our Privacy Policy.
Click to copy, then share by pasting into your messages, comments, social media posts and websites.
Click to copy, then add into your webpages so users can view and engage with this video from your site.
We also accept reports via email. Please see the Guidelines Enforcement Process for instructions on how to make a request via email.
We will investigate and take the appropriate action.
If you ever need to run an HTML file online or offline then this video is for you.
I was trying to run my html5 Godot Game export when I got an error saying, "Failed loading file 'tmp_export.wasm'". I get this error because many browsers, Chromium-based browsers specifically (I'm using Brave), will not load exported projects when opened locally per "file://" protocol. To get around this, I'm using a local server.
<-----Commands----->
Terminal:
cd your/folder
for python --> python -m SimpleHTTPServer
for python2 --> python2 -m SimpleHTTPServer
for python3 --> python3 -m http.server
By default, the server will start on port 8000. you can easily change this by adding your port of choice (8080, 5045, etc...) to any of the commands above
In the browser type:
localhost:8000
You will be given a list of files in the folder unless there is one named "index.html" in which case the website will load automatically.
<-----Commands----->
Thanks For Watching!
If you have any questions please let me know in the comments. Like, share, and if you can, send nud-- I mean coffee --> https://www.buymeacoffee.com/hmYTSeUDQ
Category | Education |
Sensitivity | Normal - Content that is suitable for ages 16 and over |
How to Install CastleDB on Ubuntu Linux
4 years ago
Directional Screen Drag Input with Godot
4 years ago
To dismiss this warning and continue to watch the video please click on the button below.
Note - Autoplay has been disabled for this video.