UWSG Configuration
INI File
[uwsgi]
module = introvesia.wsgi:application
master = true
processes = 4
socket = /var/www/html/introvestama/introvesia.sock
chmod-socket = 660
vacuum = true
die-on-term = true
Service File
[Unit]
Description=uWSGI Service
After=network.target
[Service]
User=www # Replace with your username
Group=www # Replace with your group
WorkingDirectory=/var/www/html/introvestama/introvesia
Environment="PATH=/var/www/html/introvestama/venv/bin"
ExecStart=/var/www/html/introvestama/venv/bin/uwsgi --ini uwsgi.ini
Restart=always
[Install]
WantedBy=multi-user.target
No Comments