Skip to content

Commit

Permalink
Update RUNBOOK.md (#59)
Browse files Browse the repository at this point in the history
fix name of mediawiki-volume
  • Loading branch information
thealphadollar authored Jul 17, 2019
1 parent 6192b46 commit 3cc5e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RUNBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Please follow below instructions in order to upgrade the mediawiki version. Refe
1. Take a backup! Run `docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.prod.yml exec backup ./run_backup.sh` and make sure it succeeded. Also run `git log` and note down the current deployed sha, in case you need to roll back.
1. `git pull` and `docker-compose build`. This builds and caches the new images locally without interrupting the old server, which reduces downtime.
1. `docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.prod.yml down` shuts down the server and removes containers. Now downtime has started ticking.
1. `docker volume rm <mediawiki-volume>`, so that the mediawiki container can create a new volume with updates in the next step.
1. `docker volume rm metakgp-wiki_mediawiki-volume`, so that the mediawiki container can create a new volume with updates in the next step.
1. `docker-compose up --build -d` starts all the services using the newly built images. Server is back online, verify by going to the wiki in a browser. If there are database problems, it's often fixed by running `docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.prod.yml exec php /srv/mediawiki/maintenance/update.php`.

## Docker
Expand Down

0 comments on commit 3cc5e2c

Please sign in to comment.