Last Updated: February 25, 2016
·
492
· iiseymour

Serve your current directory

You can quickly serve your current directory by running:

python -m SimpleHTTPServer

And now just visit localhost:8000 in your browser!

2 Responses
Add your response

If you're on python3:

python -m http.server
over 1 year ago ·

You can define the port as well

python -m SimpleHTTPServer 8888
over 1 year ago ·