Modifications de style de README.md
This commit is contained in:
parent
1abec27b8b
commit
4cf33d74de
71
README.md
71
README.md
@ -24,11 +24,9 @@ L'application est écrite en python et utilise majoritairement streamlit.
|
|||||||
|
|
||||||
Le fichier **requirements.txt** permet d'installer tout ce qui est nécessaire pour l'application.
|
Le fichier **requirements.txt** permet d'installer tout ce qui est nécessaire pour l'application.
|
||||||
|
|
||||||
> python -m venv venv
|
python -m venv venv
|
||||||
>
|
source venv/bin/activate
|
||||||
> source venv/bin/activate
|
pip install -r requirements.txt
|
||||||
>
|
|
||||||
> pip install -r requirements.txt
|
|
||||||
|
|
||||||
### Environnement
|
### Environnement
|
||||||
|
|
||||||
@ -36,29 +34,24 @@ Le fichier **.env** n'est pas dans le dépôt car il contient la clé pour accé
|
|||||||
|
|
||||||
Pour l'environnement de pré-production, (https://fabnum-dev.peccini.fr)[https://fabnum-dev.peccini.fr] :
|
Pour l'environnement de pré-production, (https://fabnum-dev.peccini.fr)[https://fabnum-dev.peccini.fr] :
|
||||||
|
|
||||||
> ENV=dev
|
ENV=dev
|
||||||
|
PORT=8502
|
||||||
|
GITEA_URL = "https://fabnum-git.peccini.fr/api/v1"
|
||||||
>
|
>
|
||||||
> PORT=8502
|
GITEA_TOKEN = "LE_TOKEN_POUR_ACCEDER_A_GITEA"
|
||||||
>
|
ORGANISATION = "fabnum"
|
||||||
> GITEA_URL = "https://fabnum-git.peccini.fr/api/v1"
|
DEPOT_FICHES = "fiches"
|
||||||
>
|
|
||||||
> GITEA_TOKEN = "LE_TOKEN_POUR_ACCEDER_A_GITEA"
|
|
||||||
>
|
|
||||||
> ORGANISATION = "fabnum"
|
|
||||||
>
|
|
||||||
> DEPOT_FICHES = "fiches"
|
|
||||||
|
|
||||||
Pour l'environnement de production, (https://fabnum.peccini.fr)[https://fabnum.peccini.fr], le fichier est identique sauf pour :
|
Pour l'environnement de production, (https://fabnum.peccini.fr)[https://fabnum.peccini.fr], le fichier est identique sauf pour :
|
||||||
|
|
||||||
> ENV=public
|
ENV=public
|
||||||
>
|
PORT=8501
|
||||||
> PORT=8501
|
|
||||||
|
|
||||||
dev et public sont les deux branches officielles du dépôt.
|
dev et public sont les deux branches officielles du dépôt.
|
||||||
|
|
||||||
L'application se lance simplement sous la forme :
|
L'application se lance simplement sous la forme :
|
||||||
|
|
||||||
> streamlit run fabnum.py --server.port 8502
|
streamlit run fabnum.py --server.port 8502
|
||||||
|
|
||||||
### launch-fabnum.py
|
### launch-fabnum.py
|
||||||
|
|
||||||
@ -68,32 +61,20 @@ Pour automatiser le lancement, il est intégré dans systemd :
|
|||||||
|
|
||||||
**/etc/systemd/system/multi-user.target.wants/fabnum-dev.service**
|
**/etc/systemd/system/multi-user.target.wants/fabnum-dev.service**
|
||||||
|
|
||||||
> [Unit]
|
[Unit]
|
||||||
>
|
Description=Fabnum Dev - Streamlit App
|
||||||
> Description=Fabnum Dev - Streamlit App
|
After=network.target
|
||||||
>
|
|
||||||
> After=network.target
|
[Service]
|
||||||
>
|
WorkingDirectory=/home/fabnum/fabnum-dev
|
||||||
>
|
ExecStart=/home/fabnum/fabnum-dev/launch_fabnum.sh
|
||||||
> [Service]
|
Restart=always
|
||||||
>
|
RestartSec=5
|
||||||
> WorkingDirectory=/home/fabnum/fabnum-dev
|
User=fabnum
|
||||||
>
|
Environment=PYTHONUNBUFFERED=1
|
||||||
> ExecStart=/home/fabnum/fabnum-dev/launch_fabnum.sh
|
|
||||||
>
|
[Install]
|
||||||
> Restart=always
|
WantedBy=multi-user.target
|
||||||
>
|
|
||||||
> RestartSec=5
|
|
||||||
>
|
|
||||||
> User=fabnum
|
|
||||||
>
|
|
||||||
> Environment=PYTHONUNBUFFERED=1
|
|
||||||
>
|
|
||||||
>
|
|
||||||
>
|
|
||||||
> [Install]
|
|
||||||
>
|
|
||||||
> WantedBy=multi-user.target
|
|
||||||
|
|
||||||
### fabnum.py
|
### fabnum.py
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user