Update install instructions

This commit is contained in:
Alexandre Iooss 2020-09-01 14:39:03 +02:00
parent 5feb23ad51
commit d89f6dcf5c
1 changed files with 14 additions and 11 deletions

View File

@ -14,21 +14,25 @@ Sinon vous pouvez suivre les étapes ici.
### Installation avec Debian/Ubuntu ### Installation avec Debian/Ubuntu
1. **Installation des dépendances APT.** 1. **Installation des dépendances APT.**
On tire les dépendances le plus possible à partir des dépôts de Debian.
On a besoin d'un environnement LaTeX pour générer les factures.
```bash ```bash
$ sudo apt install nginx python3 python3-pip python3-dev uwsgi uwsgi-plugin-python3 python3-venv git acl $ sudo apt update
``` $ sudo apt install -t buster-backports -y python3-django python3-django-crispy-forms \
python3-django-extensions python3-django-filters python3-django-polymorphic \
La génération des factures de l'application trésorerie nécessite une installation de LaTeX suffisante, python3-djangorestframework python3-django-cas-server python3-psycopg2 python3-pil \
python3-babel python3-lockfile python3-pip python3-phonenumbers ipython3 \
```bash uwsgi uwsgi-plugin-python3 \
$ sudo apt install texlive-latex-extra texlive-fonts-extra texlive-lang-french texlive-latex-extra texlive-fonts-extra texlive-lang-french \
gettext libjs-bootstrap4 fonts-font-awesome \
nginx python3-venv git acl
``` ```
2. **Clonage du dépot** dans `/var/www/note_kfet`, 2. **Clonage du dépot** dans `/var/www/note_kfet`,
```bash ```bash
$ mkdir -p /var/www/note_kfet && cd /var/www/note_kfet $ sudo mkdir -p /var/www/note_kfet && cd /var/www/note_kfet
$ sudo chown www-data:www-data . $ sudo chown www-data:www-data .
$ sudo chmod g+rwx . $ sudo chmod g+rwx .
$ sudo -u www-data git clone git@gitlab.crans.org:bde/nk20.git . $ sudo -u www-data git clone git@gitlab.crans.org:bde/nk20.git .
@ -39,8 +43,7 @@ Sinon vous pouvez suivre les étapes ici.
```bash ```bash
$ python3 -m venv env $ python3 -m venv env
$ source env/bin/activate $ source env/bin/activate
(env)$ pip3 install -r requirements/base.txt (env)$ pip3 install -r requirements.txt
(env)$ pip3 install -r requirements/prod.txt # uniquement en prod, nécessite une base postgres
(env)$ deactivate # sortir de l'environnement (env)$ deactivate # sortir de l'environnement
``` ```
@ -197,7 +200,7 @@ un serveur de développement par exemple sur son ordinateur.
$ python3 -m venv venv $ python3 -m venv venv
$ source venv/bin/activate $ source venv/bin/activate
(env)$ pip install -r requirements/base.txt (env)$ pip install -r requirements.txt
3. Copier le fichier `.env_example` vers `.env` à la racine du projet et mettre à jour 3. Copier le fichier `.env_example` vers `.env` à la racine du projet et mettre à jour
ce qu'il faut ce qu'il faut