Last Updated: February 25, 2016
·
446
· matthewforr

Dead simple webserver on OS X

Sometimes when working on a front-end project I want to run it off of a web server instead of as a file://. Well I've done the whole MAMP stack and putting things in my web server folder but there's an even easier way to load something up on demand.

Open up your terminal and fire up a python server!

python -m SimpleHTTPServer

This will server up the directory from which it's run at http://localhost:8000.

Read more about it here.