Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIG-1761: switch to gunicorn #51

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/candigv2-authx.git@v2.4.2
candigv2-logging@git+https://github.com/CanDIG/candigv2-logging.git@v1.0.0
14 changes: 0 additions & 14 deletions uwsgi.ini

This file was deleted.