I am running static content deployment command but unfortunately its not generating the media in pub folder Magento version 2.1.0
2 Answers 2
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 generatingPuneet– Puneet2017年10月11日 10:42:27 +00:00Commented Oct 11, 2017 at 10:42
-
You need do custom code and also check file permission2017年10月11日 10:46:01 +00:00Commented Oct 11, 2017 at 10:46
-
Please check @rakesh blog magento.stackexchange.com/questions/134360/… for generate resize image2017年10月11日 10:47:43 +00:00Commented Oct 11, 2017 at 10:47
-
your command doesn't workedPuneet– Puneet2017年10月11日 10:53:07 +00:00Commented Oct 11, 2017 at 10:53
-
@amrit bera do you have any other suggestionPuneet– Puneet2017年10月11日 11:10:57 +00:00Commented Oct 11, 2017 at 11:10
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 ?