Created
January 6, 2014 14:53
-
-
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`".
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
#!/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