add uvicorn, django-simple-task and django-background-tasks

This commit is contained in:
meeb
2020-11-29 17:38:23 +11:00
parent b0893c80f1
commit 7d88faa21a
5 changed files with 77 additions and 3 deletions

View File

@@ -108,4 +108,4 @@ EXPOSE 8080
ENTRYPOINT ["/app/entrypoint.sh"]
# Run gunicorn
CMD ["/usr/local/bin/gunicorn", "-c", "/app/tubesync/gunicorn.py", "--capture-output", "tubesync.wsgi:application"]
CMD ["/usr/local/bin/gunicorn", "-c", "/app/tubesync/gunicorn.py", "-k", "uvicorn.workers.UvicornWorker", "--capture-output", "tubesync.asgi:application"]