diff --git a/scripts/service.sh b/scripts/service.sh index 8b16c9d..a8ac032 100755 --- a/scripts/service.sh +++ b/scripts/service.sh @@ -1,3 +1,8 @@ #!/usr/bin/env bash cd ../deepface/api/src + +# run the service with flask - not for production purposes +# python api.py + +# run the service with gunicorn - for prod purposes gunicorn --workers=1 --timeout=3600 --bind=0.0.0.0:5000 "app:create_app()" \ No newline at end of file