Created
August 16, 2018 08:21
-
-
Save zeloc/0cabe2a03a2d62c68566188812ab2af6 to your computer and use it in GitHub Desktop.
clean all with static content deploy and di compile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd /var/www/vhosts/partyshowroom/production/htdocs/ | |
echo 'Clearing magento cache...' | |
rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/cache/* | |
echo 'Clearing page cache...' | |
rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/page_cache/* | |
echo 'Restarting Varnish service' | |
sudo /etc/init.d/varnish restart | |
echo 'Clear generation files...' | |
rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/generation/* | |
echo 'Clear view preprocessed...' | |
rm -rf /var/www/vhosts/partyshowroom/production/htdocs/var/view_preprocessed/* | |
echo 'Clear Static files...' | |
rm -rf /var/www/vhosts/partyshowroom/production/htdocs/pub/static/* | |
echo 'Running setup upgrade' | |
php /var/www/vhosts/partyshowroom/production/htdocs/bin/magento setup:upgrade | |
echo 'Running di compile' | |
php /var/www/vhosts/partyshowroom/production/htdocs/bin/magento setup:di:compile | |
echo 'Running static content deploy' | |
php /var/www/vhosts/partyshowroom/production/htdocs/bin/magento setup:static-content:deploy en_US en_GB | |
echo 'Clean complete' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment