Skip to content

Commit

Permalink
switch to gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Sep 7, 2024
1 parent bad4690 commit 3f8e4b2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ if [[ -f "initial_setup" ]]; then
rm initial_setup
fi

uwsgi uwsgi.ini
cd query_server
gunicorn server:app
12 changes: 12 additions & 0 deletions query_server/gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os

bind = "0.0.0.0:3000"
workers = int(os.getenv("WORKERS", 4))
threads = int(os.getenv("THREADS", 4))
user = "candig"
group = "candig"
loglevel = 'debug'
accesslog = '-'
access_log_format = 'INFO\t%(m)s\t%(U)s\t%(b)s\t%(M)s\t%(s)s'
capture_output = True
syslog = True
4 changes: 0 additions & 4 deletions query_server/wsgi.py

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Flask==2.2.5
Flask-Cors==5.0.0
pytest==7.2.0
connexion==2.14.2
uwsgi==2.0.23
gunicorn>=23.0.0
swagger-ui-bundle==0.0.9
candigv2-authx@git+https://github.com/CanDIG/[email protected]
candigv2-logging@git+https://github.com/CanDIG/[email protected]
14 changes: 0 additions & 14 deletions uwsgi.ini

This file was deleted.

0 comments on commit 3f8e4b2

Please sign in to comment.