Skip to content

Instantly share code, notes, and snippets.

@arjus
Last active May 14, 2018 07:58
Show Gist options
  • Save arjus/4ea7293b108fd2e0aea928b94b995165 to your computer and use it in GitHub Desktop.
Save arjus/4ea7293b108fd2e0aea928b94b995165 to your computer and use it in GitHub Desktop.
Commands to force Magento 2 theme deployment when static content is not getting generated
chmod -R 775 pub/static/ var/ pub/media/
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/
php -r "opcache_reset();"
php bin/magento deploy:mode:set developer
php bin/magento setup:static-content:deploy en_US -f
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento cache:clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment