Add shell script for development server

This commit is contained in:
Martin Müller 2017-07-27 17:18:49 +02:00
parent 66a95dd2be
commit f605cdc8be

12
devserver.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
basedir=$(dirname "$0")
if [ ! -d "$basedir/py" ]; then
echo "Directory \"py\" with a Python virtual environment"
echo "does not exist. See README.rst on how to set it up."
else
export FLASK_DEBUG=1
export FLASK_APP="$basedir/soundboard.py"
"$basedir"/py/bin/flask run
fi