Skip to content
Snippets Groups Projects
Commit 3625f3ab authored by David Trattnig's avatar David Trattnig
Browse files

Run API service in production.

parent 9c0e019d
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ debug="--debug" ...@@ -5,7 +5,7 @@ debug="--debug"
if [ -n "$1" ]; then if [ -n "$1" ]; then
if [[ $1 =~ ^(engine|lqs|api)$ ]]; then if [[ $1 =~ ^(engine|lqs|api|api-prod)$ ]]; then
mode=$1 mode=$1
fi fi
fi fi
...@@ -25,4 +25,11 @@ if [ $mode == "api" ]; then ...@@ -25,4 +25,11 @@ if [ $mode == "api" ]; then
sh ./script/build-web.sh sh ./script/build-web.sh
echo "Starting API Server" echo "Starting API Server"
/usr/bin/python3.7 api.py /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 fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment