Issues deploying the project in django using nginx, gunicorn #883
-
I would like to deploy this project which works perfectly on localhost or on python manage.py runserver command, when I try to deploy it I read on the documentation on the worker you should add these to gunicorn service which when I do -k eventlet -w 1, it returns 502 bad gateway This is what i'm getting based off https://github.com/miguelgrinberg/python-socketio/tree/main/examples/server/wsgi/django_example This is my gunicorn service
wsgi.py
settings.py
If I remove the -k eventlet from the dev.service gunicorn service, the 502 bad gateway goes away and the page keeps loading forever and it returns 504 Gateway Time-out, and if I revert back wsgi.py to it's django by default boilerplate, it shows the page, but the websockets doesn't work and the page keeps sending https://example.com/socket.io/?EIO=4&transport=polling&t=opIU5ZA GET requests, that gets 502 bad gateway |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Please do not write bugs on this project when all you need is help making your application work. The discussion board is for this purpose. |
Beta Was this translation helpful? Give feedback.
Please do not write bugs on this project when all you need is help making your application work. The discussion board is for this purpose.