Skip to content

Instantly share code, notes, and snippets.

@rifki
Created May 23, 2018 17:31
Show Gist options
  • Save rifki/49543711b92eba27e3d3d9bd19182a0d to your computer and use it in GitHub Desktop.
Save rifki/49543711b92eba27e3d3d9bd19182a0d to your computer and use it in GitHub Desktop.
compile magento 2.1 or > 2.1
#!/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