From 4ecb14ab3100437fee6b87eb91181349536f74bb Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Mon, 24 Jun 2019 11:18:00 +0200 Subject: [PATCH] Add section about deploy new version --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index fad6f1d..a87ac60 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,30 @@ ansible-playbook --inventory scaleway_inventory.yml --limit validata-next --user Then copy [api.secrets.env.template](./production/api.secrets.env.template) and [ui.secrets.env.template](./production/ui.secrets.env.template) to `/etc/docker/compose/validata` on server (removing the `.template` extension), and fill-in the values. Read [validata-api](https://git.opendatafrance.net/validata/validata-api) and [validata-ui](https://git.opendatafrance.net/validata/validata-ui) documentation for more information about environment variables. +### Deploy a new version + +To deploy a new version of Validata: + +```bash +ssh root@go-next.validata.fr +cd /etc/docker/compose/validata +docker-compose pull +docker-compose up -d +``` + +Test that it works. To see the logs: + +```bash +docker-compose logs +docker-compose logs -f +``` + +To delete older images (among other things): + +```bash +docker system prune +``` + ## See also - https://git.opendatafrance.net/validata/validata-ui -- GitLab