Created
          March 3, 2013 23:55 
        
      - 
      
- 
        Save corydolphin/5078956 to your computer and use it in GitHub Desktop. 
    Create simple HTTP Server as .bat script. Put it somewhere on your path, and simply type ```server [port=8000]``` to spin up a web server.
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | @ECHO OFF | |
| :: Written by Cory Dolphin (@wcdolphin www.corydolphin.com) | |
| :: Simple bat script to start a simple Python server in the current directory | |
| :: Usage: server [port <default = 8000>] | |
| if "%1" =="" ( :: no parameter, default port | |
| python -m SimpleHTTPServer 8000 | |
| ) else ( :: use specified port | |
| python -m SimpleHTTPServer %1 | |
| ) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment