Created
April 12, 2012 02:09
-
-
Save saml/2364270 to your computer and use it in GitHub Desktop.
twistedweb twistd web server
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 | |
if (( $# < 1 )) | |
then | |
echo "Usage: $0 htdocs [other params]" | |
exit 1 | |
fi | |
htdocs="$1" | |
shift 1 | |
twistd -n web --path="$htdocs" $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment