Gunicorn.sock files : How are they generated? Where should they be located?

February 26, 2015 2k views

Hi I'm currently trying to follow a tutorial on installing nginx with gunicorn and django. I've combed the web for more docs/explanation on the gunicorn.sock file, it's contents and location.

So far all the tutorials I've seen include such a file, but do not explain fully their purpose. Can anyone on digital ocean shed more light on these? I've done a search for 'gunicorn.sock' on but I get the boilerplate 'Your search did not match any documents...'

Thanks in advance :-)

1 Answer

Hi, Sock files are Unix domain sockets that processes use to communicate - in this case, Gunicorn uses its .sock files to talks to other parts of the process.

Have another answer? Share your knowledge.