Harrington Web

Serving static files in a directory.

Wednesday, May 3, 2017
A few different ways to serve static files in a directory on the fly for development.

IIS Express

C:\> "C:\Program Files (x86)\IIS Express\iisexpress.exe" /path:C:\MyWeb /port:8000


$ npm install -g http-server 
$ http-server -p 8000


$ php -S localhost:8000

Python 2

$ python -m SimpleHTTPServer 8000

Python 3

$ python3 -m http.server 8000


$ ruby -run -e httpd . -p 8000

No comments :

Post a Comment