One-line HTTP Static Server

Posted on 17 March 2016 - 1 min read

Today, I have just found this way to share my html document in the fastest way. Honestly, it's pretty fun to serve a http static server in your current directory by only one line of code. Here is what I used:

Python 2.x:

$ python -m SimpleHTTPServer 8080

Note that the server will be available at http://localhost:8080.

Want more? Click here

Next: Viết blog bằng VuePress

Bong Nguyen © 2016 - 2022