Skip to content

Instantly share code, notes, and snippets.

@saml
Created April 12, 2012 02:09
Show Gist options
  • Save saml/2364270 to your computer and use it in GitHub Desktop.
Save saml/2364270 to your computer and use it in GitHub Desktop.
twistedweb twistd web server
#!/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