Running a Python Web Server - ish-app/ish GitHub Wiki
Running a Python web server
This works surprisingly well and you can use this to host your static html page
- Run
apk update - Run
apk add python3 - Create an index.html file in the directory you chose
cd <your directory>touch index.html - Edit
index.htmland write whatever you want inside of the file. - Run
python3 -m http.server - Navigate to
http://127.0.0.1:8000if you want to view the website on your device (localhost) - From any other device on your network, navigate to
http://<your device's private ip>:8000