upd README about deploiement
This commit is contained in:
parent
6f1dc178e9
commit
dd41cf139b
18
README.md
18
README.md
@ -92,7 +92,6 @@ $ docker-compose up -d citizen-front
|
|||||||
|
|
||||||
```
|
```
|
||||||
docker-compose up -d citizen-front
|
docker-compose up -d citizen-front
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Apache
|
### 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)
|
# Single-container instructions (deprecated)
|
||||||
## Installation
|
## Installation
|
||||||
|
Loading…
Reference in New Issue
Block a user