Removed sstart

This commit is contained in:
Davide Bongiovanni
2016-11-04 15:53:38 +01:00
parent 1810ba9903
commit cf035f8b28
-24
View File
@@ -1,24 +0,0 @@
#!/bin/sh
export FLASK_APP=server.py
loc=false
noh=false
while getopts "ln" opt; do
case $opt in
l) loc=true ;;
n) noh=true ;;
\?) echo "Invalid argument" ;;
esac
done
if $loc; then
if $noh; then
nohup flask run&
else
flask run
fi
else
if $noh; then
nohup flask run --host=0.0.0.0&
else
flask run -host=0.0.0.0
fi
fi