Skip to content

Instantly share code, notes, and snippets.

@s-shin
Last active October 10, 2015 04:08
Show Gist options
  • Save s-shin/3630706 to your computer and use it in GitHub Desktop.
Save s-shin/3630706 to your computer and use it in GitHub Desktop.
simple server by python3.x
#! /usr/bin/env python3
import sys
import http.server
port = 3000 if len(sys.argv) == 1 else int(sys.argv[1])
httpd = http.server.HTTPServer(
('localhost', port), http.server.SimpleHTTPRequestHandler)
httpd.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment