This is the same.
Ruby web server one liner.
Ruby console server one liner.
P8000 python 2 x offers a similar way.
Today when developing some more client side code for dubjoy i again had the need of quickly loading a html file through a web server.
Sometimes you just want to have a small web server that serves files to test something.
Node static is required default is python 2 x or 3 x depends on your environment.
Ruby web server one liner.
This server does funky things with relative paths.
That should be true for any of these.
One note though re.
Python3 m http server this will setup a simple web server rooted at your current directory listening on port 8000.
It is possible to launch a web server from command line in current directory not only with python one liner but with ruby too.
Handler thin run builder new run directory new.
Php 5 4 node static node js.
Python m simplehttpserver in python 3 it becomes even shorter.
I was more than delighted to stumble upon this post it describes a ruby one liner that launches a thin web server that serves the current directory.
Ruby webrick via un.
With python 2 4 it is a simple one liner.
Ruby rrack e include rack.
Ruby run ehttpd.
Serve the current directory on ruby 1 9 2 you can do the following for current directory.
Python m simplehttpserver 8000.