Whenever I clicked flush static files cache in admin panel it deletes files in pub folder, but it did not regenerate while deployment.

I don't know what is the reason for this.

Anybody who knows. please help me.


You need to run the following command to generate static files after the deployment.

php bin/magento setup:static-content:deploy

Disclaimer : This is not related to the answer.

I can see a similar question that you have asked few minutes before. I think you should go through Magento official documentation in details. This will give you better insights about Magento 2. There is always a learning curve for every developer and let's face it. :)

|improve this answer|||||

The reason for this problem is, lacking the folder permissions. After flushing the cache, please give write permission to your pub/static and var folders.

If you are using Linux, you can try something like

chmod -R 777 pub/static/*
chmod -R 777 var/*

After executing the above commands, run the static content deploy command.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.