Run in background after rebuild

This commit is contained in:
Oleg Lavrovsky 2020-05-18 14:16:38 +02:00
parent 6657d3b7b7
commit 9e39e199cb
2 changed files with 2 additions and 3 deletions

View file

@ -44,13 +44,12 @@ rebuild:
docker-compose build web docker-compose build web
docker-compose stop web docker-compose stop web
docker-compose kill web docker-compose kill web
docker-compose up -d web
compress: compress:
docker-compose exec web ./manage.py collectstatic --noinput -i media docker-compose exec web ./manage.py collectstatic --noinput -i media
docker-compose exec web ./manage.py compress docker-compose exec web ./manage.py compress
release: rebuild compress release: rebuild compress run
reindex: reindex:
docker-compose exec web ./manage.py update_index docker-compose exec web ./manage.py update_index

View file

@ -136,7 +136,7 @@ The typical order of deployment is:
For further deployment and system maintenance we have a `Makefile` which automates Docker Compose tasks. This should be converted to use [Ansible Container](http://docs.ansible.com/ansible-container/getting_started.html). In the meantime, start a release with Ansible, then complete it using `make`, i.e.: For further deployment and system maintenance we have a `Makefile` which automates Docker Compose tasks. This should be converted to use [Ansible Container](http://docs.ansible.com/ansible-container/getting_started.html). In the meantime, start a release with Ansible, then complete it using `make`, i.e.:
``` ```
ansible-playbook -i ansible/inventories/production --tags release ansible/site.yaml ansible-playbook -i ansible/inventories/production --tags release ansible/wagtail.yaml
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"
``` ```