Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (16 sloc) 604 Bytes
#!/bin/bash
# Serves content from the build directory. Audio files, if placed in
# `build/audio` are served properly by RangeHTTPServer, whereas
# SimpleHTTPServer does not support range requests.
# Check to see if the Python module RangeHTTPServer is installed.
SERVER_INSTALLED=`pip search rangehttpserver | grep INSTALLED`
if [ "$SERVER_INSTALLED" = "" ]; then
echo "You do not have the RangeHTTPServer installed"
echo ""
echo "Install with: pip install RangeHTTPServer"
echo ""
echo "You may be required to use sudo to install"
exit 1
fi
cd build
python -m RangeHTTPServer