diff --git a/README.md b/README.md index b85b926..4a889b9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config/uwsgi.config b/config/uwsgi.config index 05dd9c1..726e7bf 100644 --- a/config/uwsgi.config +++ b/config/uwsgi.config @@ -16,4 +16,5 @@ die-on-term = true socket = /run/uwsgi/uwsgi.sock chmod-socket = 774 plugins = python3 +virtualenv = /var/www/mat2-web/venv