Quick Local Static Servers
Three quick local static web server for dev or what ever.
Python
Use http.server from the standard library:
python -m http.server 8000
then surf to localhost:8000
(in python 2: python -m SimpleHTTPServer
)
Ruby
Use Ruby WEBrick server with handy command from standard “un” library:
ruby -run -e httpd . -p 8080
then surf to localhost:8080
(see Run, Ruby, Run for details of this idiosyncratic command)
Node
Use http-server package.
Install npm install -g http-server
.
Then:
http-server
in the directory to serve