2020-05-12 13:59:39 -07:00
|
|
|
#!/bin/bash
|
2020-05-12 13:58:25 -07:00
|
|
|
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
|
2020-05-15 12:46:28 -07:00
|
|
|
export FLASK_ENV=development
|
2020-05-12 13:58:25 -07:00
|
|
|
inlets client --remote=$1 --upstream=http://127.0.0.1:5000 --token=$2 &
|
2020-02-01 21:30:05 -08:00
|
|
|
FLASK_APP=fgs flask run
|