One line webservers for everybody

Sometimes it is necessary to serve a folder with static resources (images, for example) as a web server. The probably most popular commands to perform these tasks are:

php -S localhost:9999
python -m SimpleHTTPServer 9999

The option that uses PHP built-in web server requires PHP 5.4+. The following gist provides several other ways to run a webserver locally.

gist willurd 5720255



Like this content? Buy me a coffeeor share around:

0 Like

0 Reply & Share