[Unit] Description=aligned.click web product After=network.target [Service] User=aligned Group=aligned WorkingDirectory=/opt/aligned.click EnvironmentFile=/opt/aligned.click/.env # Pull latest main before every start, so a deploy is just a push + restart. ExecStartPre=/usr/bin/git -C /opt/aligned.click fetch origin main ExecStartPre=/usr/bin/git -C /opt/aligned.click reset --hard origin/main ExecStart=/opt/aligned.click/.venv/bin/python /opt/aligned.click/app/server.py Restart=on-failure RestartSec=5 NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ReadWritePaths=/opt/aligned.click/private [Install] WantedBy=multi-user.target