[Django]-I've deleted my .sock file – Django, Nginx, Gunicorn

3👍

Just try to run this command it will create .sock file for you

sudo systemctl start gunicorn
sudo systemctl enable gunicorn

this will create your_project.sock file and then check the status by typing this command

sudo systemctl status gunicorn

0👍

If you are using systemd enable and start your service. If everything ok with service file it will create the .sock file again.

systemctl start <your service name>
systemctl enable <your service name>

Leave a comment