Created
May 23, 2018 17:31
-
-
Save rifki/49543711b92eba27e3d3d9bd19182a0d to your computer and use it in GitHub Desktop.
compile magento 2.1 or > 2.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf generated | |
# please careful! make sure working properly | |
php -d memory_limit=-1 bin/magento module:enable --all | |
php -d memory_limit=-1 bin/magento setup:upgrade | |
php -d memory_limit=-1 bin/magento setup:di:compile | |
rm -rf pub/static/* | |
php -d memory_limit=-1 bin/magento setup:static-content:deploy -f | |
php -d memory_limit=-1 bin/magento cache:clean | |
chmod -R 777 generated | |
chmod -R 777 var | |
chmod -R 777 pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment