From 9ff0d13e0710e8a177f5c0ff8e150af2a5f8b8fc Mon Sep 17 00:00:00 2001 From: sessionm21 Date: Tue, 12 May 2020 21:58:25 +0100 Subject: [PATCH] update sh script --- run.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 2b51965..6b3dcf7 100755 --- a/run.sh +++ b/run.sh @@ -1,2 +1,9 @@ -inlets client --remote=104.236.9.120:8090 --upstream=http://127.0.0.1:5000 --token=$1 & +if [ "$#" -ne 3 ]; then + echo usage: $0 " " + exit +fi + +# Run the Flask and Python server through inlets +export DB_LOC=$3 +inlets client --remote=$1 --upstream=http://127.0.0.1:5000 --token=$2 & FLASK_APP=fgs flask run