From 6a663b188a162d3247bd35ea5d2240c95b6714e7 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Wed, 26 Apr 2017 15:57:01 +0200 Subject: [PATCH] Release instructions --- Makefile | 2 +- README.md | 2 +- ansible/roles/web/tasks/release.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f0c3aa6..d550332 100644 --- a/Makefile +++ b/Makefile @@ -38,9 +38,9 @@ setup: docker-compose exec web ./manage.py collectstatic release: + docker-compose build web docker-compose stop web docker-compose kill web - docker-compose build web docker-compose up -d web django-exec-bash: diff --git a/README.md b/README.md index c5822eb..f275db5 100644 --- a/README.md +++ b/README.md @@ -98,5 +98,5 @@ For further deployment and system maintenance we have a `Makefile` which automat ``` ansible-playbook -s ansible/site.yaml -i ansible/inventories/production --tags release -ssh -i .keys/ansible.pem ansible@ "cd && make" +ssh -i .keys/ansible.pem ansible@ "cd && make release" ``` diff --git a/ansible/roles/web/tasks/release.yaml b/ansible/roles/web/tasks/release.yaml index a58880e..7d71728 100644 --- a/ansible/roles/web/tasks/release.yaml +++ b/ansible/roles/web/tasks/release.yaml @@ -13,4 +13,4 @@ - name: Update Docker site debug: - msg: "Please run 'make' in {{ release_dir }} to finish updating the site" + msg: "Please run 'make release' in {{ release_dir }} to finish updating the site"