Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/runServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ source .env/bin/activate
export FLASK_APP=webServer
export FLASK_ENV=development

port=$1
hostIP=$1
port=$2

if [ "$port" == "" ];
then
port="5000"
fi

#listening on quad 0s currently
if [ "$hostIP" == "" ];
then
hostIP="0.0.0.0"
fi

cd backEnd/SQL
echo "creating the database"
python -m init_db
Expand All @@ -25,4 +32,4 @@ cd ../..
echo "running the server on port : $port"
cd backEnd/

flask run -p $port
flask run -p $port -h $hostIP