Last active
October 10, 2015 04:08
-
-
Save s-shin/3630706 to your computer and use it in GitHub Desktop.
simple server by python3.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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