Skip to content

Instantly share code, notes, and snippets.

@tyom
Created January 6, 2014 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyom/8283886 to your computer and use it in GitHub Desktop.
Save tyom/8283886 to your computer and use it in GitHub Desktop.
Launch Python local server for script directory. Useful for distributing static HTML prototypes (e.g. Middleman builds) with simple instructions: "Double-click on `launch.command`".
#!/bin/bash
cd `dirname $0` && open "http://localhost:8000" && python -m SimpleHTTPServer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment