From 15289a348607c1318a43ca94c79fcc049a71ff35 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Thu, 10 Jan 2019 10:38:52 +0100 Subject: [PATCH] Upgrade option in Makefile --- Makefile | 4 ++++ README.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index ad328b8..697147f 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ export COMPOSE_PROJECT_NAME=publichealth default: build +upgrade: + docker-compose pull + build-cached: docker-compose build @@ -38,6 +41,7 @@ setup: docker-compose exec web ./manage.py collectstatic release: + docker-compose pull sudo docker-compose build web docker-compose stop web docker-compose kill web diff --git a/README.md b/README.md index fe15f26..df87361 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,10 @@ ansible-playbook -s ansible/site.yaml -i ansible/inventories/production --tags r ssh -i .keys/ansible.pem ansible@ "cd && make release" ``` +This is already part of the normal release cycle, but if you wish to update the Docker images to the latest versions separately, use: + +`make upgrade` + ### Restoring a data backup For development, it's handy to have access to a copy of the production data. To delete your local database and restore from a file backup, run: