Skip to content

Instantly share code, notes, and snippets.

@fdaciuk
Last active August 29, 2015 13:58
Show Gist options
  • Save fdaciuk/10000330 to your computer and use it in GitHub Desktop.
Save fdaciuk/10000330 to your computer and use it in GitHub Desktop.
Simple static server on Ubuntu with Python

Simple static server on Ubuntu with Python

Execute a static server on the current directory.

python -m SimpleHTTPServer [port]

Example of use

In your terminal:

python -m SimpleHTTPServer 9001

Then, access on your browser:

http://localhost:9001

Enjoy! xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment