mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-08-01 10:46:02 -04:00
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:
commit
9b6c747893
2 changed files with 11 additions and 0 deletions
10
README.md
10
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
|
||||
|
|
|
@ -16,4 +16,5 @@ die-on-term = true
|
|||
socket = /run/uwsgi/uwsgi.sock
|
||||
chmod-socket = 774
|
||||
plugins = python3
|
||||
virtualenv = /var/www/mat2-web/venv
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue