Skip to content

Commit

Permalink
Install and use uvicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed Dec 23, 2024
1 parent 966ceef commit 8778c21
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ USER rnacentral
COPY ./entrypoint.sh $RNACENTRAL_HOME
ENTRYPOINT ["/srv/rnacentral/rnacentral-webcode/entrypoint.sh"]

CMD ["gunicorn", "--chdir", "/srv/rnacentral/rnacentral-webcode/rnacentral", "--bind", "0.0.0.0:8000", "rnacentral.wsgi:application", "--workers", "4", "--threads", "2", "--timeout", "120", "--graceful-timeout", "60", "--keep-alive", "10", "--max-requests", "1000", "--max-requests-jitter", "100", "--log-level=debug", "--access-logfile", "/dev/stdout", "--error-logfile", "/dev/stderr"]
CMD ["uvicorn", "--app-dir", "/srv/rnacentral/rnacentral-webcode/rnacentral", "rnacentral.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "4", "--log-level", "debug"]
2 changes: 1 addition & 1 deletion rnacentral/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ requests==2.25.1
six==1.12.0
sqlparse==0.4.1
colorhash==1.0.3
gunicorn==21.2.0
uvicorn==0.33.0
python-dotenv==0.15.0

# markdown support
Expand Down
6 changes: 6 additions & 0 deletions rnacentral/rnacentral/asgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os

from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rnacentral.settings")
application = get_asgi_application()

0 comments on commit 8778c21

Please sign in to comment.