spiderweb/test.sh

23 lines
283 B
Bash
Raw Normal View History

2023-01-07 22:15:43 +00:00
if [ $# -gt 0 ]
then
2022-02-05 07:49:31 +00:00
cd scripts || exit
2023-01-07 22:15:43 +00:00
if ! ./build.sh ${1}
then
cd ..
echo "terminated"
exit 1
fi
2021-11-28 17:31:32 +00:00
cd ..
fi
2023-01-07 22:15:43 +00:00
if [ "$1" == "-d" ]; then
2023-12-02 08:29:26 +00:00
rm -rf __pycache__
2023-01-08 08:34:34 +00:00
flask --app webapp.py --debug run --exclude-patterns *webapp.log*
2023-01-07 22:15:43 +00:00
else
flask --app webapp.py run
fi
2021-11-28 17:31:32 +00:00