Skip to content

Instantly share code, notes, and snippets.

@IamSwap
Created April 25, 2020 16:12
Show Gist options
  • Save IamSwap/70acceac0e71b62a4d5c3f328ca8f751 to your computer and use it in GitHub Desktop.
Save IamSwap/70acceac0e71b62a4d5c3f328ca8f751 to your computer and use it in GitHub Desktop.
Magento 2 deployment script
cd /magento2-root
git pull origin master
composer install
php bin/magento setup:upgrade
php bin/magento cache:flush
php bin/magento cache:clean
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment