Upgrade option in Makefile
This commit is contained in:
parent
f1c4367c09
commit
15289a3486
2 changed files with 8 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -3,6 +3,9 @@ export COMPOSE_PROJECT_NAME=publichealth
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
docker-compose pull
|
||||||
|
|
||||||
build-cached:
|
build-cached:
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
|
||||||
|
@ -38,6 +41,7 @@ setup:
|
||||||
docker-compose exec web ./manage.py collectstatic
|
docker-compose exec web ./manage.py collectstatic
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
docker-compose pull
|
||||||
sudo docker-compose build web
|
sudo docker-compose build web
|
||||||
docker-compose stop web
|
docker-compose stop web
|
||||||
docker-compose kill web
|
docker-compose kill web
|
||||||
|
|
|
@ -147,6 +147,10 @@ ansible-playbook -s ansible/site.yaml -i ansible/inventories/production --tags r
|
||||||
ssh -i .keys/ansible.pem ansible@<server-ip> "cd <release_dir> && make release"
|
ssh -i .keys/ansible.pem ansible@<server-ip> "cd <release_dir> && 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
|
### 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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue