Rebuild static files from scratch

DOMAIN=domein.nl

cd /var/www/${DOMAIN}/web && rm -rf var/view_preprocessed/*;
cd /var/www/${DOMAIN}/web && rm -rf pub/static/*;
service php7.2-fpm restart;

#cd /var/www/${DOMAIN}/web && php7.2 bin/magento setup:static-content:deploy en_US nl_NL -vv;
cd /var/www/${DOMAIN}/web && php7.2 bin/magento setup:static-content:deploy --theme Magento/backend nl_NL en_US;
cd /var/www/${DOMAIN}/web && php7.2 bin/magento setup:static-content:deploy --theme Smartwave/porto nl_NL en_US;
cd /var/www/${DOMAIN}/web && php7.2 bin/magento cache:clean;
cd /var/www/${DOMAIN}/web && php7.2 bin/magento cache:flush;
cd /var/www/${DOMAIN}/web && chmod 777 -R var pub generated;
cd /var/www/${DOMAIN}/web && chown -R web21:client3 ./
sleep 3;
service php7.2-fpm restart;
Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on whatsapp