SHARE
TWEET

Untitled

a guest Jul 16th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env bash
  2. set -x
  3. HOTFIX_BRANCH=$1
  4.  
  5. cd /var/www/magento2/
  6.  
  7. sudo chown -R php-fpm:php-fpm /var/www/magento2/generated /var/www/magento2/pub/static/
  8. sudo chmod -R 755 /var/www/magento2/generated /var/www/magento2/pub/static/
  9.  
  10. sudo -uphp-fpm php -d opcache.enable=0 -d display_errors=1 -d set_time_limit=0 -d memory_limit=-1 bin/magento cache:flush
  11. sudo -uphp-fpm git config core.fileMode false
  12. sudo -uphp-fpm git config user.name "nbwebbuilder"
  13. sudo -uphp-fpm git config user.email "ecommerce.operations@nobelbiocare.com"
  14. sudo -uphp-fpm git fetch --all
  15. #sudo -uphp-fpm git merge $HOTFIX_BRANCH --no-squash
  16. sudo -uphp-fpm git checkout production
  17. sudo -uphp-fpm git branch -d hotfix/eifu
  18. sudo -uphp-fpm git checkout -b hotfix/eifu $HOTFIX_BRANCH
  19.  
  20. sudo -uphp-fpm php -d opcache.enable=0 -d display_errors=1 -d set_time_limit=0 -d memory_limit=-1 bin/magento setup:upgrade
  21. sudo -uphp-fpm php -d opcache.enable=0 -d display_errors=1 -d set_time_limit=0 -d memory_limit=-1 bin/magento setup:di:compile
  22. sudo yum install parallel -y && sudo -uphp-fpm parallel php -d opcache.enable=0 -d display_errors=1 -d set_time_limit=0 -d memory_limit=-1 /var/www/magento2//bin/magento setup:static-content:deploy ::: en_US en_AU en_BE en_CA en_DK en_SE en_FI en_GB en_HK en_HU en_IE en_IN en_NL en_NO en_NZ de_AT de_CH de_DE en_ZA es_ES es_MX fr_BE fr_CA fr_CH fr_FR it_CH it_IT ja_JP pt_PT ru_RU
  23. sudo -uphp-fpm php -d opcache.enable=0 -d display_errors=1 -d set_time_limit=0 -d memory_limit=-1 bin/magento cache:flush
  24.  
  25. sudo systemctl stop php-fpm
  26. sudo rm -rf /var/lib/php/fpm/opcache/*
  27. sudo systemctl start php-fpm
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top