Create daphne asgi + websocket | Django | ubuntu 20.04
Submitted by stephenwenceslao on Wed, 03/02/2022 - 12:46Create daphne ASGI
must allow whatever port you set
must allow whatever port you set
1.Can run gunicorn on your env
gunicorn --bind 0.0.0.0:9001 myapp.wsgi2.Added subdomain on droplet networking. 3.Root access. 4.Install certbot nginx
sudo apt install certbot python3-certbot-nginx.
1.Make sure you already installed the gunicorn on your django env
pip install gunicorn
2.Create new socket file on
sudo nano /etc/systemd/system/gunicorn_subdomain1.socket