Skip to content

Instantly share code, notes, and snippets.

@XueshiQiao
Last active May 23, 2018 12:21
Show Gist options
  • Save XueshiQiao/b00da0504bcbd43367e777d14ee94efb to your computer and use it in GitHub Desktop.
Save XueshiQiao/b00da0504bcbd43367e777d14ee94efb to your computer and use it in GitHub Desktop.
Create a simple local http server on Mac OS

In terminal, navigate to the directory you want to run and type the following command:

python -m SimpleHTTPServer 8000

The 8000 is the port, it could be any open port like 3000, 4567, 8000

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