Merge branch 'readme-venv' into 'master'

README.md: Add instructions on configuring a venv

See merge request jvoisin/mat2-web!293
This commit is contained in:
João Seckler 2025-07-16 11:19:36 +00:00
commit 9b6c747893
2 changed files with 11 additions and 0 deletions

View file

@ -63,6 +63,16 @@ mat2 is available in [Debian stable](https://packages.debian.org/stable/mat2).
# mkdir ./mat2-web/uploads/
# chown -R www-data:www-data ./mat2-web
```
### Installing python dependencies
```
# apt install python3-venv pkg-config libcairo-dev libgirepository1.0-dev
# cd /var/www/mat2-webn
# python -m venv venv
# . venv/bin/activate
# pip install -r requirements.txt
```
### Build the CSS file
```bash

View file

@ -16,4 +16,5 @@ die-on-term = true
socket = /run/uwsgi/uwsgi.sock
chmod-socket = 774
plugins = python3
virtualenv = /var/www/mat2-web/venv