add option to use flak run in service sh

This commit is contained in:
Sefik Ilkin Serengil 2024-02-04 17:27:17 +00:00
parent 0b0d898b5d
commit 3690f32949

View File

@ -1,3 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd ../deepface/api/src 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()" gunicorn --workers=1 --timeout=3600 --bind=0.0.0.0:5000 "app:create_app()"