Last active
January 22, 2020 14:41
-
-
Save hewersonfreitas/893b46db30fd2774ffb0d4da935652df to your computer and use it in GitHub Desktop.
rebuild magento >=2.2.x
This file contains hidden or 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
sudo chown -R www-data:www-data /var/www/html/{folder} && | |
sudo rm -rf /var/www/html/{folder}/var/* && | |
sudo rm -rf /var/www/html/{folder}/generated/* && | |
sudo rm -rf /var/www/html/{folder}/pub/static/* && | |
sudo chmod -R 777 /var/www/html/{folder}/pub/static && | |
php /var/www/html/{folder}/bin/magento setup:upgrade && | |
php /var/www/html/{folder}/bin/magento setup:di:compile && | |
php /var/www/html/{folder}/bin/magento setup:static-content:deploy pt_BR -f && | |
chmod -R 777 /var/www/html/{folder}/var && | |
chmod -R 777 /var/www/html/{folder}/pub/static && | |
chmod -R 777 /var/www/html/{folder}/generated && | |
sudo chown -R www-data:www-data /var/www/html/{folder} && | |
service varnish restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment