soundboard/devserver.sh
2017-07-27 17:18:49 +02:00

13 lines
289 B
Bash
Executable File

#!/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