rm -rf var/generation/
rm -rf pub/static/frontend/
rm -rf pub/static/_requirejs/frontend/
rm -rf var/view_preprocessed/
rm -rf var/cache/
rm -rf var/page_cache/
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
sudo service varnish restart