[Unit] Description=Gunicorn service (excerpt) After=network.target [Service] # Runs under a dedicated user with a venv in the project directory User=hibbitr1 Group=hibbitr1 WorkingDirectory=/var/www/portfolio_web ExecStart=/var/www/portfolio_web/venv/bin/gunicorn --workers 3 app:app -b :8000 Restart=always [Install] WantedBy=multi-user.target # Notes: This unit demonstrates running a Python WSGI app via Gunicorn behind nginx.