Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. function cleanStatic {
  2.  
  3. rm -rf ~/public_html/pub/static/frontend ~/public_html/pub/static/adminhtml ~/public_html/pub/static/_cache ~/public_html/pub/static/deployed_version.txt;
  4.  
  5. rm -rf ~/public_html/var/view_preprocessed;
  6.  
  7. php ~/public_html/bin/magento cache:flush full_page;
  8.  
  9. }
  10.  
  11.  
  12.  
  13. function cleanAll {
  14.  
  15. rm -rf ~/public_html/pub/static/frontend ~/public_html/pub/static/adminhtml ~/public_html/pub/static/_cache ~/public_html/pub/static/deployed_version.txt;
  16.  
  17. rm -rf ~/public_html/var/view_preprocessed;
  18.  
  19. php ~/public_html/bin/magento cache:flush;
  20.  
  21. redis-cli -h redis flushall;
  22.  
  23. curl -X 'PURGE' -H'X-Magento-Tags-Pattern: .*' varnish;
  24.  
  25. }
  26.  
  27.  
  28.  
  29. function deployAll {
  30.  
  31. php ~/public_html/bin/magento setup:di:compile;
  32.  
  33. php ~/public_html/bin/magento setup:static-content:deploy -s standard;
  34.  
  35. }
  36.  
  37.  
  38.  
  39. function deploySafe {
  40.  
  41. php ~/public_html/bin/magento maintenance:enable;
  42.  
  43. cleanAll;
  44.  
  45. deployAll;
  46.  
  47. php ~/public_html/bin/magento maintenance:disable;
  48.  
  49. }
  50.  
  51. sudo -i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement