Hello guys. I’m trying to run multiple process using gunicorn and nginx, should I create gunicorn.service for each project or change anything from gunicorn code confuguration ?
My gunicorn.service:
[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target
[Service]
User=foca
Group=www-data
WorkingDirectory=/home/foca/projects/djangoProject4
ExecStart=/home/foca/projects/djangoProject4/bin/gunicorn
–access-logfile -
–workers 3
–bind unix:/run/gunicorn.sock
djangoProject4.wsgi:application
[Install]
WantedBy=multi-user.target