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.
|
||||
|
||||
> python -m venv venv
|
||||
>
|
||||
> source venv/bin/activate
|
||||
>
|
||||
> pip install -r requirements.txt
|
||||
python -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
|
||||
### 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] :
|
||||
|
||||
> ENV=dev
|
||||
ENV=dev
|
||||
PORT=8502
|
||||
GITEA_URL = "https://fabnum-git.peccini.fr/api/v1"
|
||||
>
|
||||
> PORT=8502
|
||||
>
|
||||
> GITEA_URL = "https://fabnum-git.peccini.fr/api/v1"
|
||||
>
|
||||
> GITEA_TOKEN = "LE_TOKEN_POUR_ACCEDER_A_GITEA"
|
||||
>
|
||||
> ORGANISATION = "fabnum"
|
||||
>
|
||||
> 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 :
|
||||
|
||||
> ENV=public
|
||||
>
|
||||
> PORT=8501
|
||||
ENV=public
|
||||
PORT=8501
|
||||
|
||||
dev et public sont les deux branches officielles du dépôt.
|
||||
|
||||
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
|
||||
|
||||
@ -68,32 +61,20 @@ Pour automatiser le lancement, il est intégré dans systemd :
|
||||
|
||||
**/etc/systemd/system/multi-user.target.wants/fabnum-dev.service**
|
||||
|
||||
> [Unit]
|
||||
>
|
||||
> Description=Fabnum Dev - Streamlit App
|
||||
>
|
||||
> After=network.target
|
||||
>
|
||||
>
|
||||
> [Service]
|
||||
>
|
||||
> WorkingDirectory=/home/fabnum/fabnum-dev
|
||||
>
|
||||
> ExecStart=/home/fabnum/fabnum-dev/launch_fabnum.sh
|
||||
>
|
||||
> Restart=always
|
||||
>
|
||||
> RestartSec=5
|
||||
>
|
||||
> User=fabnum
|
||||
>
|
||||
> Environment=PYTHONUNBUFFERED=1
|
||||
>
|
||||
>
|
||||
>
|
||||
> [Install]
|
||||
>
|
||||
> WantedBy=multi-user.target
|
||||
[Unit]
|
||||
Description=Fabnum Dev - Streamlit App
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/home/fabnum/fabnum-dev
|
||||
ExecStart=/home/fabnum/fabnum-dev/launch_fabnum.sh
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
User=fabnum
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
### fabnum.py
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user