Comment faire fonctionner plusieurs systèmes Django App Gunicorn?

J’ai deux django projects exécutés sur des ports différents dans la même ec2 instance , un que j’ai configuré avec le système gunicorn comme suit en créant le fichier gunicorn.service dans /etc/systemd/system/ qui fonctionne génial si je lance la commande systemctl start gunicorn . Maintenant, je veux exécuter un autre projet, comment puis-je le configurer, actuellement je suis en train d’utiliser cette commande /usr/local/bin/gunicorn --graceful-timeout 30 --bind 0.0.0.0:8690 projectFile.wsgi:application --daemon , puis-je append le même dans gunicorn.service lui-même. Comment configurer plusieurs projets dans gunicorn systemd ?

Fichier gunicron.service –

 [Unit] Description=gunicorn daemon After=network.target [Service] PIDFile=/tmp/gunicorn.pid LogFile=/tmp/lgunicorn.log User=root Group=www-data WorkingDirectory=/home/ubuntu/website/UniservedWebsite ExecStart = /usr/local/bin/gunicorn --workers 2 --graceful-timeout 30 --bind 0.0.0.0:8134 UniservedWebsite.wsgi:application [Install] WantedBy=multi-user.target 

Créez simplement deux fichiers .service et démarrez-les séparément …