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.
Written by Matthew Forr
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#