server/run.sh
2020-05-15 20:46:28 +01:00

12 lines
329 B
Bash
Executable File

#!/bin/bash
if [ "$#" -ne 3 ]; then
echo usage: $0 "<inlets_ip_address:port> <inlets_token> <sqlite_database_path>"
exit
fi
# Run the Flask and Python server through inlets
export DB_LOC=$3
export FLASK_ENV=development
inlets client --remote=$1 --upstream=http://127.0.0.1:5000 --token=$2 &
FLASK_APP=fgs flask run