Skip to content

Instantly share code, notes, and snippets.

@gelanivishal
Last active February 21, 2017 01:39
Show Gist options
  • Save gelanivishal/808fafab272f63b16bb6ed0349e1d46f to your computer and use it in GitHub Desktop.
Save gelanivishal/808fafab272f63b16bb6ed0349e1d46f to your computer and use it in GitHub Desktop.
M2: Useful commands
# deploy static content
php bin/magento setup:upgrade
rm -rf var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ pub/static var/composer_home
php bin/magento setup:static-content:deploy
chmod -Rf 777 pub/ var/
# enable language pack for any language
php bin/magento cache:clean
php bin/magento setup:static-content:deploy et_EE
# permission
sudo chmod -Rf 777 var/
sudo chmod -Rf 777 pub/static
sudo chmod -Rf 777 pub/media
sudo chmod -Rf 777 app/etc
sudo chmod -Rf 777 pub/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment