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.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
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. :)
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.