Skip to main content

Posts

Showing posts from May, 2017

Serving static files in a directory.

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
NodeJS $ npm install -g http-server
$ http-server -p 8000
PHP $ php -S localhost:8000
Python 2 $ python -m SimpleHTTPServer 8000
Python 3 $ python3 -m http.server 8000
Ruby $ ruby -run -e httpd . -p 8000