From 5e7d1ba82767d7befce71333c2bc02cc6b8ba1d0 Mon Sep 17 00:00:00 2001 From: nough Date: Sun, 28 Aug 2022 20:51:26 +0100 Subject: [PATCH] Update updating.md remove outline of docker update batch script - it wasn't ready and I committed it when I didn't understand how github branches work (I still don't, really). --- docs/system/updating.md | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/docs/system/updating.md b/docs/system/updating.md index b1da0aa7..ad66cc79 100644 --- a/docs/system/updating.md +++ b/docs/system/updating.md @@ -11,33 +11,7 @@ For all setups using Docker the updating process look something like this 2. Pull the latest image using `docker-compose pull` 3. Start the container again using `docker-compose up -d` -## Docker Script -``` -#get vars -input name of docker_db_container -input working directory -#backup docker -sudo docker exec -t docker_db_recipes_1 pg_dumpall -U djangouser > pgdump.sql - -docker-compose down -mv postgresql date_postgresqlbackup -check that docker-compose.yml files are up to date with latest recommended from install instructions -check that .env is up to date with latest recommended from install instructions - -#start update -docker-compose pull -docker-compose up -d -wait 5 minutes -docker-compose down -docker-compose up -d -wait 5 minutes - -#import database to new setup -cat pgdump.sql | sudo docker exec -i docker_db_recipes_1 psql postgres -U djangouser -docker-compose down -docker-compose up -d -``` ## Manual