kristofer revised this gist . Go to revision
1 file changed, 16 insertions
pewee.md(file created)
| @@ -0,0 +1,16 @@ | |||
| 1 | + | ## One Liner Web Server Python3 | |
| 2 | + | ||
| 3 | + | For a Python 3 web server, from the directory containing your files, run: | |
| 4 | + | ||
| 5 | + | ```bash | |
| 6 | + | python3 -m http.server 8000 | |
| 7 | + | ``` | |
| 8 | + | ||
| 9 | + | Serves up the files in the directory you start it in. | |
| 10 | + | ||
| 11 | + | ||
| 12 | + | Then open your browser and go to: | |
| 13 | + | ``` | |
| 14 | + | http://localhost:8000 | |
| 15 | + | ``` | |
| 16 | + | ||
Newer
Older