texte de mise en production

develop
gwen 2 years ago
parent 3e911f15ec
commit c156577470

@ -0,0 +1,33 @@
Cérémonial de mise en production
===================================
Mise en production
-----------------------
Ajout d'un tag de release
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Vérifier que le tag n'existe pas : `git tag -n`
- Insérer le tag `git tag -a v0.1beta -m"first production release"`
- faire un `git push --tags` pour mettre le tag sur le dépôt gitlab
- renommer `params.yaml` en `params.dev.yaml`
::
cp params.yaml params.dev.yaml
- renommer `params.prod.yaml` en `params.yaml`
::
cp params.prod.yaml params.yaml
.. note:: Ce fichier `params.yaml` sera copié directement par le script de `deployment`
par la task "Deployment - copies the credentials file from the local
app working copy repository". Il n'est pas mis dans l'archive git
pour des raisons de sécurité.
Mise à jour de l'application
--------------------------------
Même procédure (ajout d'un tag de release et règlage des paramètres).

@ -19,9 +19,9 @@ _Nota_ : commands to execute through the terminal (Linux or macOS)
- Installation : `pip install -r requirements.txt` - Installation : `pip install -r requirements.txt`
- Exit the environment : `deactivate`; - Exit the environment : `deactivate`;
## Launch ## Launch (development mode)
- Launch : `python index.py`; - Launch : `python index.py`;
- Go to http://127.0.0.1:5000/; - Go to http://127.0.0.1:8080/;
- Stop : `ctrl + c`; - Stop : `ctrl + c`;
- Exit the environment : `deactivate`. - Exit the environment : `deactivate`.

Loading…
Cancel
Save