=======================
- Pull changes from repository
git pull
git checkout <VERSION TO UPGRADE>
- Upgrade composer dependency
php composer.phar install --prefer-dist
- Disable APC, OpCache, other code accelerators
- Remove old caches and assets
rm -rf var/cache/*
rm -rf public/js/*
rm -rf public/css/*
- Upgrade platform
php bin/console oro:platform:update --env=prod