ASGI

长久以来一直用WSGI部署Django应用,最近上Django Channels,wss部署到生产环境不管用了,

把gunicorn换成daphne, 

Dockfile 最后增加命令


CMD ["daphne", "-b", "0.0.0.0", "-p", "8888",  "nameniubiapp.asgi:application"]

搞定。

Django-Channels wss 生产环境
Views (1643) Comment (0) 2021-08-06
For example, "name@something.com". If someone replies to you it will be via email.
For example, "http://someaddress.com"