5
Déploiement sur liveche
juminet edited this page 4 months ago
0) Si on change le fichier app.config.ts, et seulement ce fichier
scp patches/frontend/src/conf/app.config.ts.dist user@liveche.xxx.xxx:/home/debian/docker-projects/biommap/front/app.config.ts
1) Rebuild the images in local
Set the DEBUG variable to false in patches/back/default_config.toml
DEBUG=false
Set the production command in the docker-compose file
command: bash start_gunicorn.sh
Then, rebuild the images
docker-compose build citizen-front
docker login registry.gitlab.com
docker push registry.gitlab.com/champs-libres/geonature-citizen/front
Il est peut-être aussi nécessaire de faire de même pour l'image media
.
docker-compose build citizen-back
docker login registry.gitlab.com
docker push registry.gitlab.com/champs-libres/geonature-citizen/back
NB: Il semble qu'il y ait parfois des erreurs Failed building wheel for flask-admin
mais qui ne porte pas à conséquence
Sur le serveur distant
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
´´´