Skip to content

Instantly share code, notes, and snippets.

@matthewr6
Last active August 29, 2015 14:26
Show Gist options
  • Save matthewr6/bfaedc7514e3f3f13077 to your computer and use it in GitHub Desktop.
Save matthewr6/bfaedc7514e3f3f13077 to your computer and use it in GitHub Desktop.
Simple local hosting

Setup

  • Python on system path (or a way to set up localhost)
  • Knowledge of how to use system path variable
  • Basic CLI knowledge

Downloads

  • Get ngrok
  • Add ngrok to your system path (or bin folder on *NIX)

Do things

  • Navigate to directory
  • python -m SimpleHTTPServer (or just get something running on localhost, such as python manage.py runserver)
  • New tab/window of CLI in same directory
  • ngrok http localhost:8000 (or whatever your port # is)

Misc

  • Point a domain to your ngrok site
  • Get a paid plan for custom ngrok subdomains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment