Score:0

How to setup multiple django sites using NGINX and gunicorn

cn flag

I have a virtual server already running a DJango site of mine. Now I want to add on another site to the same server but am unable to do so. Yes I correctly configured the NGINX part which redirects requests but am unable to get it working with gunicorn. How can I create multiple Gunicorn configurations? When I am trying to add two gunicorn config file only one is running and the second one is getting stopped. Below is my gunicorn configuration file for the first site:

[program:gunicorn]
directory=/home/user/project_file
command=/home/user/env/bin/gunicorn --workers 3 --bind  
unix:/home/user/project_file/app.sock project_file.wsgi:application
autostart=true
autorestart=true
stderr_logfile=/var/log/gunicorn/gunicorn.err.log
stdout_logfile=/var/log/gunicorn/gunicorn.out.log

[group:guni]
Program:gunicorn
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.