From dd41cf139bc40ef53ba4eb495ff1077573355d74 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 15 Jun 2021 11:27:33 +0200 Subject: [PATCH] upd README about deploiement --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a13e742..443a141 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,6 @@ $ docker-compose up -d citizen-front ``` docker-compose up -d citizen-front - ``` ### Apache @@ -104,10 +103,25 @@ Redirige de 8080 vers autres services : +## Deploiement sur un serveur distant +### 1) Reconstruire l'image front en local +```bash +docker-compose build citizen-front +docker login registry.gitlab.com +docker push registry.gitlab.com/champs-libres/geonature-citizen/front +``` +### 2) Sur le serveur distant - +```bash +docker pull registry.gitlab.com/champs-libres/geonature-citizen/front +# Rebuild of the front +docker-compose run --rm citizen-front npm run build:i18n-ssr +# Restart the containers +docker-compose up -d db +docker-compose up -d +``` # Single-container instructions (deprecated) ## Installation