Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cleanStatic {
- rm -rf ~/public_html/pub/static/frontend ~/public_html/pub/static/adminhtml ~/public_html/pub/static/_cache ~/public_html/pub/static/deployed_version.txt;
- rm -rf ~/public_html/var/view_preprocessed;
- php ~/public_html/bin/magento cache:flush full_page;
- }
- function cleanAll {
- rm -rf ~/public_html/pub/static/frontend ~/public_html/pub/static/adminhtml ~/public_html/pub/static/_cache ~/public_html/pub/static/deployed_version.txt;
- rm -rf ~/public_html/var/view_preprocessed;
- php ~/public_html/bin/magento cache:flush;
- redis-cli -h redis flushall;
- curl -X 'PURGE' -H'X-Magento-Tags-Pattern: .*' varnish;
- }
- function deployAll {
- php ~/public_html/bin/magento setup:di:compile;
- php ~/public_html/bin/magento setup:static-content:deploy -s standard;
- }
- function deploySafe {
- php ~/public_html/bin/magento maintenance:enable;
- cleanAll;
- deployAll;
- php ~/public_html/bin/magento maintenance:disable;
- }
- sudo -i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement