diff --git a/run.sh b/run.sh index 9d143fb43acbba4710c9954df3659a32a8ea3013..eb6863972fddf4e411b2bcd41dc8e2d6670bf58e 100755 --- a/run.sh +++ b/run.sh @@ -5,7 +5,7 @@ debug="--debug" if [ -n "$1" ]; then - if [[ $1 =~ ^(engine|lqs|api)$ ]]; then + if [[ $1 =~ ^(engine|lqs|api|api-prod)$ ]]; then mode=$1 fi fi @@ -25,4 +25,11 @@ if [ $mode == "api" ]; then sh ./script/build-web.sh echo "Starting API Server" /usr/bin/python3.7 api.py +fi + +if [ $mode == "api-prod" ]; then + echo "Building Web Applications" + sh ./script/build-web.sh + echo "Starting API Server" + gunicorn -c configuration/gunicorn.conf.py api:app fi \ No newline at end of file