From 9e20099541abe4b1e3a1b37246b4125aec7ba240 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 10 Mar 2021 00:35:42 +0000 Subject: [PATCH] --- devdocs/deploy.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devdocs/deploy.txt b/devdocs/deploy.txt index 03db45da..3b80dd45 100644 --- a/devdocs/deploy.txt +++ b/devdocs/deploy.txt @@ -36,6 +36,10 @@ SERVER - Build new image forcing it to update as it sometimes doesn't - sudo docker-compose build --force-rm --pull + (NOTE: this will *not* pull newer postgres as it's an image already present so to update that need to do a sudo docker pull postgres:alpine first then build the image + if the major version is incompatible with the old database then there is a whole process to save it by dumping and re-building or just delete all files in the folder /var/lib/ayanova/db rm * -r + to completely remove all the db files and the postgres image will make a new empty db on boot) + - Run new image - sudo docker-compose up -d