Jump to content

Wikimedia Apps/Team/RESTBase services for apps/Deployment process/undo

From mediawiki.org

How to rollback deploy

[edit]

If things break in production and you cannot figure out what is wrong quickly then you can checkout the previous commit in the deploy repo on the deployment machine:

In #wikimedia-operations channel enter:

!log reverting mobileapps deploy <SHA-1>

Then start the actual deployment:

ssh deployment
cd /srv/deployment/mobileapps/deploy/
git checkout <previous deploy SHA>
git deploy start
git submodule update --init
git deploy sync

Then restart the services that need to be restarted.