I am running static content deployment command but unfortunately its not generating the media in pub folder Magento version 2.1.0
2 Answers
Static content deploy comment does not generate cache catalog image. Only geneses static content means css , js html ,less.
For generate cache images you should use
php bin/magento catalog:images:resize
-
then how to fix the image issue as not catalog images are generating– PuneetCommented Oct 11, 2017 at 10:42
-
You need do custom code and also check file permission– Amit Bera ♦Commented Oct 11, 2017 at 10:46
-
Please check @rakesh blog magento.stackexchange.com/questions/134360/… for generate resize image– Amit Bera ♦Commented Oct 11, 2017 at 10:47
-
-
Put .htaccess file from this url in your pub/media folder
https://github.com/magento/magento2/blob/2.1/pub/media/.htaccess
pub/media/
folder ?