From 3690f329496e27ec003efc03f1a5d26c9a967ed7 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Sun, 4 Feb 2024 17:27:17 +0000 Subject: [PATCH] add option to use flak run in service sh --- scripts/service.sh | 5 +++++ 1 file changed, 5 insertions(+) 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