Skip to content

Commit

Permalink
add option to use flak run in service sh
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil committed Feb 4, 2024
1 parent 0b0d898 commit 3690f32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/service.sh
Original file line number Diff line number Diff line change
@@ -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()"

0 comments on commit 3690f32

Please sign in to comment.