Is it important to use sockets for gunicorn or I can use just tmux?
Nginx needs to communicate with gunicorn somehow. Unless you do something _really_unusual, it’s going to be either a TCP socket or a Unix domain socket.
I’m sorry, I don’t see how tmux fits into this picture at all. If this is a persistent process that you always want running, you want it set up as a system-level process so that it is properly managed. You would never want to run this in a terminal session.
Thank you. It is working. Can you recomend VPS provider? I am using Amazon Lightsail right now…
I don’t have any particular favorites. For me, it just comes down to features & price. I’ve used all of Linode, Digital Ocean, and AWS and have never had a problem with any of them.