Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Runs a local web server from an arbitrary directory
# Python 2.x
python -m SimpleHTTPServer 8000
# Python 3
python -m http.server
# Ruby
ruby -run -e httpd . -p 8000
# PHP
php -S localhost:8000 -t .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment